Grant read access

Grant read access to everyone

  1. Click on Bucket
  • Click on the previous ws1-cloudfront bucket. S3
  1. At the ws1-cloudfront page
  • Choose Permissions tab.
  • Scroll to Bucket policy and choose “Edit” button. S3
  1. At the Edit bucket policy page
  • Copy Bucket ARN to paste on Generator
  • Click Policy generator to generate a policy. S3
  1. At the AWS Policy Generator page
  • Fill the information in the form as below. S3
  • Choose “Generate” button then will display a pop-up with policy and copy them. S3

Add a more statement arn:aws:s3:::ws1-cloudfront/* on script as below

{
  "Id": "Policy1725252919233",
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1725252905058",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::ws1-cloudfront",
        "arn:aws:s3:::ws1-cloudfront/*"
      ],
      "Principal": "*"
    }
  ]
}
  1. Back to the Edit bucket policy page
  • Paste that policy
  • Click Save changes to save information. S3