Lokendra Choudhary
Lokendra Choudhary

Reputation: 479

How to add an AWS Amplify application as subdomain for domain hosted in AWS Route53?

I have an main domain in hosted in Route 53. I want to add a subdomain to it. Like business.mainwebsite.com . I have an amplify application which i want to add there. I tried making cname in route53 and gave cname value as amplify link. But it is redirecting it to main website only.

Upvotes: 6

Views: 4099

Answers (2)

Lokendra Choudhary
Lokendra Choudhary

Reputation: 479

Two steps:

  1. Remove *.mainwebsite.com from already hosted at cloudfront.
  2. Follow this, https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-amazon-route-53.html

Upvotes: 3

peter n
peter n

Reputation: 1280

Amplify can manage that for you without going to Route53, as long as you have mainwebsite.com registered in Route 53. In the Amplify console be sure to modify the default sub-domain to business, going with your example.

https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-amazon-route-53.html

Upvotes: 1

Related Questions