1 Answer
- Newest
- Most votes
- Most comments
0
I am also getting this error.
In my case, it seems the AWS-managed role "AdministratorAccess-Amplify" is missing the "lambda:CreateFunction" permission. Thus, Amplify itself wouldn't have permission to create a backend for me.
I have tried creating a custom role in IAM that attaches the AWS-managed role "AdministratorAccess-Amplify", as well as a custom built one that contains the permissions described in this article.
However, even by setting the Service Role of my Amplify app to this custom role that attaches both AdministratorAccess-Amplify and my custom build one that contains the necessary permissions, the error "The user does not have permissions to call lambda createFunction." still occurs.
answered 2 years ago
Relevant content
- asked a year ago
- Accepted Answerasked 2 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
Perhaps it is the permissions of my very user that needs to be changed, not necessarily the Service Role of my app, because it is the user that triggers the setup of AmplifyStudio. However, there doesn't seem to be a configuration I can change to alter the permissions of my own user to enable lambda:CreateFunction
Even I am getting same error unable to delete or create the UserPoolClientLambda function. Did you found any fix for this?