Change Bucket Configuration

Change bucket configuration to make it public

  1. Click on the bucket that is newly created
  2. Click on permissions
  3. Next click on Edit Block public access (bucket settings)
  4. Uncheck Block Permissions, a pop up will come and enter confirm
  5. Under Bucket Policy, click on edit and enter the below contents after replacing it with your bucket name
 1   {
 2    "Version": "2012-10-17",
 3    "Statement": [
 4        {
 5            "Sid": "PublicReadGetObject",
 6            "Effect": "Allow",
 7            "Principal": "*",
 8            "Action": "s3:GetObject",
 9            "Resource": "arn:aws:s3:::<your_bucket_name>/*"
10        }
11    ]
12   }

Change bucket configuration for static webpage hosting

  1. Click on Properties
  2. Go till end to find Static web hosting
  3. Click on edit
  4. Click on enable
  5. Under index document type index.html
  6. Under error document type error.html
  7. Click on save changes

Upload your html files and go live!!!