Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 975 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 975 Bytes

Hosting Static Site using S3

  • Create Bucket, disable Block all public access, enable ACL.

  • Under Objects upload index.html. Select the file > select Actions > select Make Public using ACL

    image

  • Under Permissions > Bucket Policy add:

    {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "PublicReadGetObject",
              "Effect": "Allow",
              "Principal": "*",
              "Action": "s3:GetObject",
              "Resource": "arn:aws:s3:::basu-doc-frontend/*"
          }
      ]
    }
  • Under Properties > Enable Static Website Hosting and visit the html page from a browser using the URL endpoint from the tab.


    Static Site URL