User is not authorized to perform: iam:CreatePolicy on resource: policy AWSLambdaBasicExecutionRole?

Logged in as IAM user and trying to create lambda function but seeing below error, what is missing her?

User: arn:aws:iam::123334324324234:user/ is not authorized to perform: iam:CreatePolicy on resource: policy AWSLambdaBasicExecutionRole-e3e28520-4b65-439e-a006-24de73479562 

1 Answer

When you create a AWS Lambda in the AWS Console a few things are done in the background by AWS. One such thing is creating a role/policy for your Lambda automatically.

To do so, your user (arn:aws:iam::123334324324234:user/) needs the iam:CreatePolicy permission.

This is something a account administrator can fix for you.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like