Create Static Web in S3
Last updated
Last updated
This document explains how to create a static website in S3, the static Web Hosting feature allows you to host your static website on Deka Box. Follow these steps to create your static website in Deka Box.
We need to create an index document for your static web and upload it. Index documents are web pages, which are referred to as default pages.
Create an index.html file. if you don't have an index.html file, you can use the following HTML to create one:
Save the index file locally.
Upload your index.html file to your bucket. After that, we need to configure the bucket policy to allow anonymous static web access. Open S3 Browser on your computer.
In S3 Browser, click Buckets, then select Edit Bucket Policy. We need to allow anonymous to access the static web.
In the Bucket Policy Editor, create a policy syntax like the following example.
Customize ubuntu-bucket with your bucket name.
Test your static web access using a URL, as an example
Now the bucket hosts your static web.