Skip to content

Instantly share code, notes, and snippets.

@jhubert
Created April 9, 2016 05:40
Show Gist options
  • Save jhubert/485581cb83eaf5aa019ddffa0cd459d7 to your computer and use it in GitHub Desktop.
Save jhubert/485581cb83eaf5aa019ddffa0cd459d7 to your computer and use it in GitHub Desktop.
S3 Bucket Policy for granting Papertrail access
{
"Version": "2012-10-17",
"Id": "papertrail-log-access",
"Statement": [
{
"Sid": "Stmt1460179973156",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::719734659904:root"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::[bucket-name]"
},
{
"Sid": "Stmt1460180005101",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::719734659904:root"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::[bucket-name]/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment