Host Website Using Amazon Simple Storage Service (S3)
Hosting a website will help to store workloads on a simple storage service with bucket versioning, data replication, Cross-origin resource sharing, and Lifecycle policies.
Pre-requisites :
- Basic Knowledge of Amazon Simple Storage Service (S3)
- You need an AWS account with an internet connection.
- Have an AWS account or can sign in using the Free Tier of AWS.
Steps :
- Create S3 bucket with domain name as www.websitename.com
- Create a file named index.html and upload file in bucket.
- Go to permissions and enable public access in Access control list (ACL) for object and object ACL as Read.
- Make sure to enable bucket versioning so that if incase you upload any updated file in the bucket, it should not override and delete the previous file.
- Go to bucket (www.websitename.com)> properties > static website > enable > click on host static website > fill index.html in index document and click on save changes.
- You'll get a bucket website endpoint URL which you'll need to fill on the domain purchasing website (like Godaddy.com).
- There are more features which you can enable such as data lifecycle which will help you to decide what will be the access frequency for your data and accordingly you can set to Standard, Standard IA, Intelligent tie ring, Glacier or Deep Glacier (Always remember that data can be transferred only from warm to cold).
- Data lifecycle often helps in cost optimization.

Congratulations, you've successfully hosted Website on Amazon Simple Storage Service (S3).
Terminologies :
Bucket Versioning : Bucket versioning is basically keeping different of objects in the same buckets which prevent from accidental deletion proactively.
Data Replication : It helps to keep multiple copies of data in same or different region which avoid and helps in different situation like data loss or where we need to retrieve data such as disaster recovery.
CORS : Cross origin resource sharing is basically resources from one domain can interact with different domain.
Storage Classes : It is basically the access frequency for the data which we'll be uploading by case to case basis.
P.S : This is the easiest way to implement that worked for me.
Host Website Using Amazon Simple Storage Service (S3) was originally published in Towards AWS on Medium, where people are continuing the conversation by highlighting and responding to this story.
Comments
Post a Comment