AWS IAM Policy to access an S3 bucket from s3fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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/*" | |
] | |
} | |
] | |
} |
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
Isn't the
ListAllMyBuckets
action included in the*
as they share the same Resource?