In this guide, our application will be a web application, so when the end user accesses our website, their browser will load the web application’s content through CloudFront. That’s why we need to configure S3 for the web application in this step to serve as the Origin for CloudFront.
In the main console interface:
S3
This S3 Bucket will be created in the ap-southeast-1
Region. The bucket will have the following details:
imga-website
After creation, we can review the settings.
Now, we will enter this bucket, go to the Properties tab.
Scroll to the bottom to find Static website hosting, and click Edit.
We will configure it as shown in the image below.
Then, confirm the configuration. After enabling this feature, we can see the following in the Properties section.