You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to deploy a very minimal setup, I've gotten this error:
Serverless Error ---------------------------------------
ServerlessError: The function execution role must be assumable with edgelambda.amazonaws.com as well as lambda.amazonaws.com principals. Update the IAM role and try again. Role: arn:aws:iam::822757335928:role/imgiz-2-dev-us-east-1-lambdaRole
at /usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:1178:27
at processTicksAndRejections (node:internal/process/task_queues:93:5)
It makes sense. However, trying to add Principal/Service parameters to normal IAM definition on serverless.yml didn't work. I had to resort to this workaround I found here.
@WhyNotHugo I get error An error occurred: IamRoleLambdaExecution - Missing required field Action (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: 814134ec-64e6-4e18-aeae-4ef99165a659; Proxy: null) when use IamRoleLambdaExecution config.
Attempting to deploy a very minimal setup, I've gotten this error:
It makes sense. However, trying to add
Principal
/Service
parameters to normal IAM definition onserverless.yml
didn't work. I had to resort to this workaround I found here.Wouldn't it make sense for this to be the default roles assigned by this plugin? Or is that something that serverless handles?
In any case, maybe adding this to the README might help others?
The text was updated successfully, but these errors were encountered: