Michael Durrant
Michael Durrant

Reputation: 96584

aws bucket policy editor - Action does not apply to any resource(s) in statement

I use the policy editor.
I then try and apply the policy I just created in the wizard but I get the above error

enter image description here

Upvotes: 1

Views: 598

Answers (1)

Michael Durrant
Michael Durrant

Reputation: 96584

First get the bucket ARN. You can get this by clicking on the bucket row - but NOT the bucket link in that row. Which can be confusing to first timers. When you click on the row (but NOT the link) you get a bucket info panel with a 'Copy bucket ARN' button which is very handy. See here: enter image description here

You paste it into the ARN field:

enter image description here

When you then generate the policy you will get something like this:

enter image description here

Here is the critical part

Once you have copied this, you need to add "/*" at the end of the resource (the S3 bucket), like this:

enter image description here

Finally you will get this message indicating that the operation succeeded

enter image description here

Upvotes: 2

Related Questions