-
-
Save markeissler/5dfc3cfb1ccda982e22483468dcb7640 to your computer and use it in GitHub Desktop.
A sample AWS IAM json policy file with read-only access to certain S3 buckets
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
{ | |
"Statement":[{ | |
"Effect":"Allow", | |
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"], | |
"Resource":["arn:aws:s3:::my_bucket/*","arn:aws:s3:::my_bucket"] | |
} | |
], | |
"Statement":[{ | |
"Effect":"Allow", | |
"Action":["s3:ListBucket","s3:GetObject","s3:GetObjectVersion"], | |
"Resource":["arn:aws:s3:::my_other_bucket/*","arn:aws:s3:::my_other_bucket"] | |
} | |
], | |
"Statement":[{ | |
"Effect":"Allow", | |
"Action":["s3:ListAllMyBuckets"], | |
"Resource":"*", | |
"Condition": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment