Note - Deplify’s Custom Domain feature is not applicable when using the
Terraform Provider Blueprint or the CDK Provider BlueprintValidate You Own The Domain(s)
Navigate to the Domains page
- Navigate to the Stack page of the stack you want to use a custom domain(s) for.
- Click the
Domainstab.
Create a Domain Set
- Click the
Add new custom domain setbutton. - Enter in the domain(s) that you’d like to attach to your stack. The can be one or multiple domains. Do not include
https:// - Click the
CreateButton. - You should now see your domain set in the list of
Custom Domainswith a messageSet The Following Records On Your DNS Provider To Validate You Own This Domain
Add the Record(s) to your DNS Provider
- For each record in the list, you need to add the corresponding record in your DNS provider.
- The way of doing this depends on the DNS provider that is hosting your domain (GoDaddy, Namecheap, etc.) so follow the directions for the DNS Provider you are using.
- After adding the records, wait until the validation finishes. The status of domain set will change to
Ready For Useafter validation completes. The validation can take up to 10 minutes.
Routing Traffic To Your Stack.
Note - You can see your cloudfront distribution endpoint at the top of the
Domains page.For a Subdomain
As an example, if the domain you configured isapp.example.com. You will need to create a CNAME record in your DNS provider that maps app -> your cloudfront endpoint. Once this change goes live you should be all good to go!
For a Root Domain
In most cases, if using a domain likeexample.com which is a root domain. You need to set an ALIAS record in DNS provider that maps @ -> your cloudfront endpoint. Once this change goes live you should be all good to go!