nficano / python-lambda

A toolkit for developing and deploying serverless Python code in AWS Lambda.
ISC License
1.5k stars 229 forks source link

AccessDeniedException Error while lambda deploy #715

Open SyedShahzaib790 opened 2 years ago

SyedShahzaib790 commented 2 years ago

Hi there,

I am unable to deploy my code on lambda using python-lambda library. It's giving me the following error, I have given all access/permission to my user but this error is not going away. Need help ASAP.

botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the GetFunction operation: User: arn:aws:iam::123456:user/shahzaib.ali is not authorized to perform: lambda:GetFunction on resource: arn:aws:lambda:me-south-1:123456:function:GKQA with an explicit deny in an identity-based policy

Thanks

bot2x commented 2 years ago

@SyedShahzaib790 Is this resolved ?

Seems like the IAM user that you used to deploy the function does not have the right permissions. Who manages permissions in your case ?