我按照文档提示编辑桶策略报错:Policy has invalid resource

0

文档地址:https://docs.amazonaws.cn/AmazonS3/latest/userguide/WebsiteAccessPermissionsReqd.html 我按照其中的编辑策略的模板复制到我的S3的权限编辑,填写并保证了名称一致,但是提示Policy has invalid resource 在此处输入图片描述

nick
asked 4 months ago740 views
1 Answer
1

你可能使用的是 China Region 的资源,在 ARN 的 region 的前缀跟 Global Region 会不太一样[1]。您可以尝试以下的 Policy。

"arn:aws-cn:s3:::oncetalk/*"

[1] https://docs.aws.amazon.com/zh_cn/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns

profile picture
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions