1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Hello,
When I have seen Access Denied like this, it's the credentials that you are using to perform the operation and not what the policy looks like. Based on the example above you are using the default user credentials for your CLI on the host that you are using. I say that because there is no --profile option to the CLI statement above. So what access does the account that you are using have? In the documentation https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketPolicy.html. it states.
If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error.
Which is what you are receiving when making the call. If that's the issue, you only need to grant the account that you are using PutBucketPolicy right, or something more general like PowerUser
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 2年前