Skip to content

Instantly share code, notes, and snippets.

@csiebler
Last active February 29, 2016 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csiebler/d9a9ca654127f3c3f698 to your computer and use it in GitHub Desktop.
Save csiebler/d9a9ca654127f3c3f698 to your computer and use it in GitHub Desktop.
Anonymous Bucket Access via S3 for StorageGRID
> 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