Who May Assume a Role?
A Lambda function fails with is not authorized to perform: sts:AssumeRole when using its execution role. The role's permission policies are correct. What is most likely missing?
is not authorized to perform: sts:AssumeRole
Choose one answer
A resource-based policy on the role granting lambda:InvokeFunction.
lambda:InvokeFunction
A permission for the function to call iam:PassRole at run time.
iam:PassRole
A trust policy that lets lambda.amazonaws.com assume the role.
lambda.amazonaws.com
An access key stored in the function's environment variables.