In this section, we will create an AWS S3 bucket to host our static client app. To do so, let's first open the AWS S3 dashboard and navigate to the create bucket page. Next, enter the desired bucket name and click the Create bucket
button at the bottom of the page.
After creating the bucket, open it and click on the Properties
tab.
Scroll to the bottom of the page and click the Edit
button in the Static website hosting
section.
Enable Static website hosting
and set the Index document
to index.html
, which serves as the entry point for the HTML in our client app. Finally, click the Save changes
button at the bottom of the page.
When attempting to open the URL, an error page is displayed. This occurs because our bucket is not set to public. In the next few step, we will configure CloudFront as a Content Delivery Network (CDN), ensuring that the content in our bucket is only accessible when accessed through CloudFront.
Top comments (0)