📜  错误:更新 IAM 角色时出错 (lambda_exec) 假定角色策略:MalformedPolicyDocument:缺少必填字段 Principal - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:47.889000             🧑  作者: Mango

代码示例1
# Error: Error Updating IAM Role (lambda_exec) Assume Role Policy: MalformedPolicyDocument: Missing required field Principal
Add this Principle below the Effect line.
      "Principal": {
        "Service": "lambda.amazonaws.com"
      },