This is a step-by-step guide on how to create a subdomain in Route 53 and point it to an EC2 instance.
Create hosted zone for subdomain
- Go to Route 53 - Hosted zones
- Create hosted zone for subdomain, e.g. ci.example.com
- Note down the NS records
- Go to example.com hosted zone and create a new record set:
- Name: ci.example.com
- Type: NS - Name server
- Value: paste the records from step #3
- Go to ci.example.com hosted zone and create a new record set:
- Name: leave empty (ci.example.com)
- Type: A - IPv4
- Value: public IP of the EC2 instance