Here step-by-step to set up static hosting with Amazon S3:
- Go to S3 and select your bucket name
- Upload your HTML files
- Click Permission tab and turn off the Block all public access. To use S3 as static web hosting, you must turn off this
- Move to the Bucket Policy and review your current policy. Make sure only s3:GetObject policy is enabled
- Move to the Default encryption and make sure the default server side encryption is enabled
- Scroll down to the Static website hosting and click Edit
- static web hoosting: Enable
- Hosting type: Host static website
- index_document: index.html (make sure it i uploaded)