Skip to content

Instantly share code, notes, and snippets.

@pipermerriam
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save pipermerriam/3f9822a8ce9d3ab1eed1 to your computer and use it in GitHub Desktop.

Select an option

Save pipermerriam/3f9822a8ce9d3ab1eed1 to your computer and use it in GitHub Desktop.
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
{
"Statement":[
{
"Effect":"Allow",
"Action":[
"s3:ListAllMyBuckets"
],
"Resource":"arn:aws:s3:::*"
},
{
"Effect":"Allow",
"Action":[
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource":"arn:aws:s3:::bucket-name"
},
{
"Effect":"Allow",
"Action":[
"s3:*Object*"
],
"Resource":"arn:aws:s3:::bucket-name/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment