CloudFormation S3存储桶策略无效操作错误

时间:2020-06-03 13:24:26

标签: amazon-web-services amazon-s3 yaml amazon-cloudformation amazon-iam

我正在对s3存储桶策略执行以下异常策略无效操作。

我有以下动作:

  • ListObjects
  • GetObject
  • PutObject

1 个答案:

答案 0 :(得分:2)

该错误可能是因为ListObjects不是有效的策略操作。

来自策略生成器的S3的有效List*操作:

enter image description here

也可以通过IAM控制台:

enter image description here

AccountIds也可能会引起问题,但其形式未显示在您的问题中。