The role defined for the function cannot be assumed by Lambda

后端 未结 11 1249
野性不改
野性不改 2021-02-04 23:29

I\'m getting the error \"The role defined for the function cannot be assumed by Lambda\" when I\'m trying to create a lambda function with create-function command.

11条回答
  •  再見小時候
    2021-02-04 23:57

    Most people end up in this error because of giving the wrong Role ARN in CloudFormation while creating the Lambda Function.

    Make sure the role is completed first by using "DependsOn" and use the intrinsic function """{ "Fn::GetAtt" : [ "your-role-logical-name", "Arn" ] }"""

提交回复
热议问题