DEV Community

Assigning a FQDN (Fully Qualified Domain Name) to an EC2 Instance Using Route 53

Assigning an FQDN to an EC2 Instance with AWS Route 53 - This guide aims to assign a friendly domain name to an EC2 instance hosting a web server. - The FQDN simplifies access compared to using the EC2 instance's public IP address. - The setup leverages AWS Route 53 for DNS management and CloudFormation for automated deployment. - The architecture involves an EC2 instance running a web server and a Route 53 hosted zone with a RecordSet pointing to the instance's public IP. - CloudFormation template "ec2.yaml" sets up the EC2 instance with a web server, security groups, and an IAM role. - Route 53 CloudFormation template "r53.yaml" creates a RecordSet in the existing public hosted zone. - The deployed infrastructure ensures the FQDN resolves to the EC2 instance's public IP. - To access the web server, use the FQDN (e.g., www.example.com). - Assigning an FQDN enhances accessibility, simplifies maintenance, and supports scalability by allowing for multiple domains and services within the same hosted zone. - This automated and manageable solution simplifies the process of assigning a user-friendly domain name to an EC2 instance hosting a web application.
favicon
dev.to
dev.to
Image for the article: Assigning a FQDN (Fully Qualified Domain Name) to an EC2 Instance Using Route 53