Setting up a Custom Domain for your application.
Liat Hoffman
36 steps
24 minutes
Devopser
Amazon Web Services
Devopserdemo
Newtab
Terraform
1
Click the "Enter your domain (e.g., example.com)" field and enter your domain.
2
Format should be "<site.com> for example "[devopserdemo.com](http://devopserdemo.com)"
3
Click "Add Domain"
4
Click "Refresh"
5
Click "Show Instructions"
6
Go to "Route53"
7
Go to your custom domain's hosted zone.
8
Click on your domain.
9
Click "Show Instructions"
10
Create a DNS record based on the instructions to validate the certificate.
11
Once the DNS record is created, click "Verify"
12
Click "Attach to ALB"
13
It takes about 16 minutes for the new ALB to be provisioned.
14
If you get this message, the provisioning is still in progress.
15
After \~16 minutes, click "Show DNS Instructions"
16
You will get specific instructions for adding the needed DNS records to route your domain to the backend.
17
Back in Route53, click "Create record"
18
Make sure you enable the Alias setting in the A record.
19
Click "Choose endpoint"
20
Click "Alias to Application and Classic Load Balancer"
21
Click "Choose Region"
22
Click "US East (N. Virginia)"
23
Click the "Choose load balancer" field.
24
Paste the record value exactly as it appears in the instructions.
25
Click "Add another record"
26
Click the "Record name" field. Add "www" to the record name.
27
Ensure it is marked as an Alias.
28
Click "Choose endpoint"
29
Click "Alias to Application and Classic Load Balancer"
30
Click "Choose Region"
31
Click "US East (N. Virginia)"
32
Click the "Choose load balancer" field.
33
Copy the exact value from the instructions
34
Click "Create records"
35
It takes about 60 seconds for the records to be created. But it can take up to 48 hours for the records to propagate through DNS - please be patient.
36
Once DNS has propagated successfully, you will see your application at your desired web address. Congrats you have successfully attached your custom domain!
Troubleshooting tip: there is no listener on port 80 so ensure you link directly to <https://your-custom-domain.com> (with https) in the address - http will fail.