Last active
February 29, 2016 12:39
-
-
Save csiebler/d9a9ca654127f3c3f698 to your computer and use it in GitHub Desktop.
Anonymous Bucket Access via S3 for StorageGRID
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
> cat anonymous_access.json | |
{ | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"urn:sgws:s3:::cs-bucket-test1", | |
"urn:sgws:s3:::cs-bucket-test1/*" | |
] | |
} | |
] | |
} | |
> s3cmd setpolicy anonymous_access.json s3://cs-bucket-test1 | |
s3://cs-bucket-test1/: Policy updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment