Skip to content

Instantly share code, notes, and snippets.

@ruiwen
Last active December 20, 2015 06:29
Show Gist options
  • Select an option

  • Save ruiwen/6086597 to your computer and use it in GitHub Desktop.

Select an option

Save ruiwen/6086597 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAccessToBucket",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::468336580105:user/BucketIAMUser"
},
"Action": [
"s3:ListBucket",
"s3:DeleteObject",
"s3:GetObject",
"s3:GetBucketPolicy",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::bp-mediabucket/*",
"arn:aws:s3:::bp-mediabucket"
]
},
{
"Sid": "AllowReadFromAll",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bp-mediabucket/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment