header image

Code Snippets

AWS S3 Public Permissions Policy

| Last updated:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::bucket-name/*"
            ]
        }
    ]
}

Basic public access policy for objects in AWS S3 bucket.

Add to the S3 bucket using AWS Console.