Skip to content

Instantly share code, notes, and snippets.

@mauricios
Last active February 25, 2019 18:24
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mauricios/e6b7708aab0d3e205979 to your computer and use it in GitHub Desktop.
AWS IAM Policy to access an S3 bucket from s3fs
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::my-bucket"
]
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
]
}
]
}
@djui
Copy link

djui commented Mar 17, 2017

Isn't the ListAllMyBuckets action included in the * as they share the same Resource?

@michlitz
Copy link

Seems to be the case. I would think the resource for ListAllMyBuckets should be arn:aws:s3:::*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment