I"m complying with the instructions from this answer to geneprice the follow S3 bucket policy:

Action does not apply to any kind of resource(s) in statement

What am I absent from my policy?


*

From IAM docs, http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_aspects.html#Action

Some services do not let you specify actions for individual resources; rather, any type of actions that you list in the Action or NotAction element use to all sources in that company. In these situations, you usage the wildcard * in the Reresource facet.

You are watching: Action does not apply to any resource(s) in statement

With this information, reresource need to have a worth favor below:

"Resource": "arn:aws:s3:::surplace-audio/*"

*

Just rerelocating the s3:ListBucket permission wasn"t really a great enough solution for me, and also more than likely isn"t for many kind of others.

If you desire the s3:ListBucket permission, you should simply have the plain arn of the bucket (without the /* at the end) as this permission applies to the bucket itself and also not items within the bucket.

As displayed below, you have to have actually the s3:ListBucket permission as a sepaprice statement from the perobjectives pertaining to items within the bucket choose s3:GetObject and also s3:PutObject:

Share
Improve this answer
Follow
edited Dec 2 "18 at 15:44
answered Sep 28 "18 at 10:06
*

LukeLuke
20.5k2626 gold badges100100 silver badges182182 bronze badges
6
| Show 1 even more comment
45
Error Action does not apply to any type of resource(s) in statement

Ssuggest it implies that the action (you wrote in policy) doesn"t apply to the reresource. I was trying to make public my bucket so that anybody have the right to downpack from my bucket. I was acquiring error until I rerelocate ( "s3:ListBucket") from my statement.


Share
Improve this answer
Follow
edited Oct 22 "18 at 9:18
*

Luke
20.5k2626 gold badges100100 silver badges182182 bronze badges
answered Jun 24 "17 at 7:47
*

Vaseem007Vaseem007
1,8732020 silver badges1818 bronze badges
0
Add a comment |
31
Just ran into this issue and also uncovered a much shorter solution for those that want to have actually ListBucket and GetObject in the exact same policy. The necessary thing is to list both the bucket-name and bucket-name/* under Reresource.

Share
Improve this answer
Follow
edited Mar 17 at 22:14
elexhobby
2,24444 gold badges1919 silver badges2929 bronze badges
answered Oct 22 "18 at 19:33
Alex SpenceAlex Spence
1,27833 gold badges1515 silver badges2222 bronze badges
3
Add a comment |
5
I have actually likewise faced the equivalent issue while developing the bucket

Here my bucket name is mrt9949


Share
Improve this answer
Follow
answered Jul 7 "19 at 13:53
Ravi Teja MureboinaRavi Teja Mureboina
43155 silver badges66 bronze badges
1
Add a comment |
5
In my situation the solution to this error was trying to rerelocate some of Actions that I was applying. Some of them are not relevant to, or cannot job-related with this resource.In this case it wouldn"t let me encompass these:

GetBucketAclListBucketListBucketMultipartUploads


Share
Improve this answer
Follow
answered Aug 23 "19 at 19:46
Yehuda ClintonYehuda Clinton
32522 silver badges1010 bronze badges
0
Add a comment |
4
Whenever you are trying to apply usage bucket policies. Remember this thing, If you are making use of actions choose "s3:ListBucket", "s3:GetBucketPolicy", "s3:GetBucketAcl" and so on which are related to bucket, the resource attribute in policy must be pointed out as .

Ex.

ex.

See more: What Is The Expected Sum Of The Numbers That Appear When Three Fair Dice Are Rolled?

ex.