The role defined for the function cannot be assumed by Lambda

后端 未结 11 1268
野性不改
野性不改 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:56

    It could be that the Lambda is missing an execution role. Or this role has been deleted.

    In console you can see the status at Lambda > Functions > YourFunction > Permissions. Even an IAM empty role with no policies is enough to make it work.

提交回复
热议问题