Skip to content

Instantly share code, notes, and snippets.

@braxtone
Created April 1, 2015 05:42
Show Gist options
  • Save braxtone/8585f40858fd6cbefcc0 to your computer and use it in GitHub Desktop.
Save braxtone/8585f40858fd6cbefcc0 to your computer and use it in GitHub Desktop.
AWS S3 Bucket Policy to Allow Another Account to Upload to your S3 Bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "UploadPermissions",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::AWS_ID:root"
},
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::bucket-name.com/*"
},
{
"Sid": "BucketPerms",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::AWS_ID:root"
},
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::bucket-name"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment