In the detail page of your S3 bucket,
Open Properties
tab.
In the Static website hosting
section, click Edit
.
By default Static website hosting
is Disable
.
For Static website hosting
, select Enable
For Hosting type
, select Host a static website
.
For Index document
, enter index.html
Scroll to bottom, click Save changes
.
You will be redirected back to the detail page of S3 bucket.
Scroll to Static website hosting
section, click the Copy
button to copy the Bucket website endpoint
.
Now let’s open your website using the bucket website endpoint.
AccessDenied
response in XML, you receive an 403 Forbidden
response in HTML.Although you’ve turned on Static website hosting
and had a Bucket website endpoint
, you still can’t publicly access the content of your website.
If you want your website to be public, you must make all your content publicly readable for your customers to be able to access it at the website endpoint.
In the next step, you will make your bucket publicly readable, so your website can be publicly access.