Project Description
The project involves hosting a static website using an AWS S3 bucket. Amazon S3 is an object storage service that provides a simple web services interface to store and retrieve any amount of data. The website files will be uploaded to an S3 bucket and configured to function as a static website. The bucket will be configured with the appropriate permissions and a unique domain name, making the website publicly accessible. Overall, the project aims to leverage the benefits of AWS S3 to host and scale a static website in a cost-effective and scalable manner.
In the AWS management console
Create an Amazon S3 bucket service.
Choose a unique bucket name and select a region
Object Ownership as ACLS disabled
Enable public access, Set the “Block public access” settings to unchecked
Acknowledge the setting
Enable the Bucket versioning
Click on Create a bucket
The bucket is successfully created.
Upload Website Files:
Once your bucket is created, upload your website files to the bucket.
Click on ‘Upload’
Click on ‘Add files’ to add website files.
Add all the index.html website files to the s3 bucket
Configure Static Website Hosting
Go to the “Properties” tab
Scroll down to the bottom and Edit “Static Website Hosting”.
Enable Static website hosting
Set the "hosting type" as "Host a static website"
.Set the “Index Document” to “index.html”
Save the changes
A bucket Website endpoint will be created to access the Static website
Set Permissions
Set the bucket permissions to allow public access to your website.
Go to the “Permissions” tab and click on “Bucket Policy” and edit
For the bucket policy refer to the link
Browse the bucket website URL.
You should now be able to access your static website using the bucket’s URL.
Thanks for your Time.