Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance.
- Durable: The services provided allow your app to scale without fluctuating downtime.
- Highly available: It is available across so many data regions worldwide.
There are several ways to host your website:
- Using the S3 console
- Using the AWS software development kit
- Using the AWS command line interface
We will use the S3 console to deploy and host a website in this project.
A bucket is a container for objects. To store your data in Amazon S3, you first create a bucket and specify a bucket name and AWS Region. Then, you upload your data to that bucket as objects in Amazon S3.
Give a globally unique name and region to your bucket.
- Block all public access - It provides an additional layer of security for your data, preventing unauthorized access and ensuring that your data is protected at all times.
Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users
- You specify origin servers, like an Amazon S3 bucket or your own HTTP server, from which CloudFront gets your files which will then be distributed from CloudFront edge locations all over the world.
- For Origin, Origin domain, choose the S3 bucket that you created for this tutorial.
- For Origin, Origin access, select Origin access control settings (recommended).
- For Origin access control, choose Create new OAC.
- In the Create new OAC pane, keep the default settings and choose Create.
- For all other sections and settings, accept the default values.
- For Web Application Firewall (WAF), select one of the options.
- Choose Create distribution.