Skip to content

Instantly share code, notes, and snippets.

@dagrz
Created June 1, 2016 11:33
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 dagrz/2a62f7686d9915d12b405d27946b19a0 to your computer and use it in GitHub Desktop.
Save dagrz/2a62f7686d9915d12b405d27946b19a0 to your computer and use it in GitHub Desktop.
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AWSCloudTrailAclCheck20150319",
"Effect":"Allow",
"Principal":{
"Service":"cloudtrail.amazonaws.com"
},
"Action":"s3:GetBucketAcl",
"Resource":"arn:aws:s3:::[my-trail]"
},
{
"Sid":"AWSCloudTrailWrite20150319",
"Effect":"Allow",
"Principal":{
"Service":"cloudtrail.amazonaws.com"
},
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::[my-bucket]/*",
"Condition":{
"StringEquals":{
"s3:x-amz-acl":"bucket-owner-full-control"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment