Last Updated: October 16, 2019
·
241
· Curio

S3 Bucket Policy to allow "Chef Client" UserAgent

{
    "Version": "2012-10-17",
    "Id": "<snip>",
    "Statement": [
        {
            "Sid": "<snip>",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::<bucket name>/*",
            "Condition": {
                "StringNotLike": {
                    "aws:UserAgent": "*Chef *"
                }
            }
        }
    ]
}