Skip to content

Instantly share code, notes, and snippets.

@kurap
Created November 13, 2013 04:04
Show Gist options
  • Save kurap/7443525 to your computer and use it in GitHub Desktop.
Save kurap/7443525 to your computer and use it in GitHub Desktop.
備忘:AWS S3 bucket policy
### bucket policy
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadForGetBucketObjects",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::xxx.xxx.com/*"
}
]
}
### CORS Configuration
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment