In this hands-on lab, we will assign a fully qualified domain name to an EC2 instance using Route 53. Our first step will be to create an EC2 instance and set it up as a web server. Then, we will create two record sets in a provided hosted zone in Route 53. Finally, we will verify that the domain name is working by using the domain name to serve the newly configured web server.
Successfully complete this lab by achieving the following learning objectives:
- Create an EC2 Instance
- Create an EC2 instance, select the T2 micro free tier eligible instance type.
- Make sure to enable Auto-assign Public IP.
- Connect to the instance via a terminal.
- Install and launch the
httpdservice onto the instance.
- Open a new browser tab, paste in the copied public IP address to verify our web server is up and running by displaying the Apache splash page.
- Create Record Sets
- Navigate to the Route 53 service.
- Create two records:
- An A record that points to non-www version of the instance
- Another A record that points to the www version of that instance
- Open a browser, visit the www version and non-www version of the instance via its domain name.