-
-
Save JacobBennett/7e0bbd61b28abad33b78 to your computer and use it in GitHub Desktop.
A policy template to restrict a user's access to a single bucket.
This file contains hidden or 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": [ | |
{ | |
"Action": ["s3:GetBucketLocation", "s3:ListAllMyBuckets"], | |
"Effect": "Allow", | |
"Resource": ["arn:aws:s3:::*"] | |
}, | |
{ | |
"Action": ["s3:ListBucket"], | |
"Effect": "Allow", | |
"Resource": ["arn:aws:s3:::test-bucket/*"] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": ["s3:*"], | |
"Resource": ["arn:aws:s3:::test-bucket/*"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment