In this live AWS environment, we will create and configure a simple static website. Then, we will configure that static website with a custom domain, using Route 53 Alias record sets. This lab demonstrates how to create cost-efficient website hosting for sites that consist of files like HTML, CSS, JavaScript, fonts, and images.
The code we use for the static site is [here](https://github.com/ACloudGuru-Resources/aws-s3-route53-static-website/tree/main).
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create an S3 Bucket and a Static Website
Create an S3 bucket for our assigned domain, configure a static website for the domain, and set up a DNS record (called an
A
oralias
record) in Route 53. Make sure that in the Object Ownership section, checkACLs enabled
.- Configure a Custom Domain in Route 53
Create a redirect (www) S3 bucket and configure a redirect DNS record to point to our AWS S3 static site.
- Test the Static Website with `dig` and `nslookup` Commands
Open our instant terminal and run the
dig
andnslookup
commands to verify our website is routed properly.