S3 bucket policy to allow store of ELB logs

September 14, 2017 - 1 minutes

S3 bucket policy to allow store of ELB logs:

{
    "Version": "2012-10-17"
    "Id": "S3Policy-ID",
    "Statement": [
        {
            "Sid": "Stmt1513164693849",
            "Effect": "Allow",
            "Principal": "AWS": "arn:aws:iam::BUCKET_ACCOUNT:root",
            "Action": "s3:PutObject",
            "Resource": "arn:aws:s3:::bucket_name/*/AWSLogs/IAM_ACCOUNT/*"
        }
    ]
}