-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initializer step function is failing due to IAM error #260
Comments
Update : I fixed this issue by updating the Policy as follows :
Seems like there aliases or versions created based on the ARN of my lambda function , so the wildcard "*" covers all of them |
hi @monasserymcp 👋 thanks for sharing! That makes sense and we should probably update the Currently, it says:
In practice, you can't use just a function ARN. The description could say something like this:
Would that make sense to you? |
Yes, Perfect |
After deploying the aws power tuning in my account and trying to execute it,The Initializer step fail with the following error
"cause": { "errorType": "AccessDeniedException", "errorMessage": "User: arn:aws:sts::xxxxxxx:assumed-role/serverlessrepo-aws-lambda-power-tun-initializerRole-l576tllQUOWO/serverlessrepo-aws-lambda-power-tuning-initializer-6adFhGV4OkoV is not authorized to perform: lambda:GetFunctionConfiguration on resource: arn:aws:lambda:xxxx xxxxx:function:xxxx:$LATEST because no identity-based policy allows the lambda:GetFunctionConfiguration action", "trace": [ "AccessDeniedException: User: arn:aws:sts::xxxx:assumed-role/serverlessrepo-aws-lambda-power-tun-initializerRole-l576tllQUOWO/serverlessrepo-aws-lambda-power-tuning-initializer-6adFhGV4OkoV is not authorized to perform: lambda:GetFunctionConfiguration on resource: arn:aws:lambda:xxxxx:xxxxxxx:function:xxxxxxxxx:$LATEST because no identity-based policy allows the lambda:GetFunctionConfiguration action",
{
lambdaResource:"arn:aws:lambda:xxxxx:xxxxxxx:function:xxxxxxxxx",
securityGroupIds:"sg-xxxxxxxxxxx",
subnetIds:"subnet-xxxxxxxxxxxxxxx"
...... rest are default values
}
{
"lambdaARN": "arn:aws:lambda:xxxxxx:xxxxxxxx:function:xxxxxxx",
"powerValues": [
128,
256,
512,
1024,
2048,
3008
],
"num": 10,
"payload": "{}",
"parallelInvocation": true,
"strategy": "balanced"
}
The text was updated successfully, but these errors were encountered: