AWS Lambda function creation failed

I was trying to create a sample function in AWS lambda. I was getting the error -
**

  • User: arn:aws:iam::525521571543:user/odl_user_777321 is not authorized to perform: lambda:CreateFunction on resource: arn:aws:lambda:ap-south-1:525521571543:function:myfirsttrialfunction because no identity-based policy allows the lambda:CreateFunction action

**

I could see Lambda is shown as a supported service in AWS. Can anyone resolve this issue?

Hi @Pradipta-Gure,

Can you check and make sure you created the lambda function under allowed regions?
us-east-1, us-east-2, eu-central-1, us-west-2, eu-west-2, ap-southeast-1

Thanks,
Trung.

1 Like

hi
i am using the supported zone of kodekloud but i am also facing the same problem.

Thanks

HI could you please help me to get rid of it?

I am facing the same problem as @ Pradipta-Gure.
I have sent kodekloud several emails and they asked me to write here.
Please answer my question.

you can submit your request here Request a Playground - KodeKloud

Our apologies for any inconvenience caused. We are aware of this issue with IAM access keys and we are working on it. We will update you as soon as we get this functionality returned.

In the meantime, until we resolve to enable IAM Keys, I would like to suggest a workaround for using terraform on the host machine with AWS.

Please have a look at the following playground, https://kodekloud.com/topic/playground-terraform/ where it makes use of terraform with AWS using Localstack.

FYI: LocalStack - A fully functional local cloud stack, Develop and test your cloud and serverless apps offline! Please let me know if this helps.

Thanks and regards,
Trung.