aws cdk 忽略承担角色声明

时间:2021-03-30 10:58:09

标签: amazon-web-services aws-lambda aws-cdk

我尝试使用 lambda 重新创建 cloudfront 堆栈。 出现错误:

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

enter image description here

但是假定主体:

enter image description here

是否生成两组“assumedRole”动作的 cloudformation 输出 正确吗?

enter image description here

代码似乎对我有用,所做的更改是我删除了本地 cdk.out。

1 个答案:

答案 0 :(得分:0)

通过部署具有另一个名称的相同堆栈来治愈。