Skip to content

Instantly share code, notes, and snippets.

@omardulaimi
Created October 7, 2020 05:02
Show Gist options
  • Save omardulaimi/3bec0af733cfb62bcfba24d6c87c2c42 to your computer and use it in GitHub Desktop.
Save omardulaimi/3bec0af733cfb62bcfba24d6c87c2c42 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "logs.YOUR-REGION.amazonaws.com"
},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::BUCKET_NAME_HERE"
},
{
"Effect": "Allow",
"Principal": {
"Service": "logs.YOUR-REGION.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::BUCKET_NAME_HERE/*",
"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