S3 Static Assets Group Policy

I always struggle to remember / find the group security policy for an S3 bucket to make all files available to the public.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "Version": "2008-10-17",
  "Statement": [
      {
          "Sid": "AllowPublicRead",
          "Effect": "Allow",
          "Principal": {
              "AWS": "*"
          },
          "Action": "s3:GetObject",
          "Resource": "arn:aws:s3:::BUCKET-NAME/*"
      }
  ]
}

The only thing that can be changed is the BUCKET-NAME, leave all other aspects of the policy the same.