Skip to content

Instantly share code, notes, and snippets.

@mayank-patel
Created September 6, 2018 04:03
Show Gist options
  • Select an option

  • Save mayank-patel/b87c752df9834f0eff004fee2c90ec45 to your computer and use it in GitHub Desktop.

Select an option

Save mayank-patel/b87c752df9834f0eff004fee2c90ec45 to your computer and use it in GitHub Desktop.

Revisions

  1. mayank-patel created this gist Sep 6, 2018.
    14 changes: 14 additions & 0 deletions s3-static-hosting-policy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Sid": "PublicReadGetObject",
    "Effect": "Allow",
    "Principal": {
    "AWS": "*"
    },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME-HERE/*"
    }
    ]
    }