Adding a custom domain
To assign a custom domain name to an environment, you need to follow 3 steps:
Step 1
Pass the custom domain name to the hosting administrators. They will set it up on the hosting level to generate auto-renewable SSL certificate for the domain. This is a required stap to make the domain accessible via https protocol.
As a result, administrators will provide a DNS record to set up for the domain name for SSL certificate validation. It will look similar to this:
- Type: CNAME
- Key: _be4ce23f2ff30fd60cbabc05189f9b58.example.com.
- Value: _18b55e9dc44fb199fcc42e1486a46312.sdgjtdhdhz.acm-validations.aws.
Step 2
Add DNS record to the domain for SSL certificate validation. It can be done by anyone with the access to the domain DNS configuration. Wait for the record status to become verified in AWS Certificate Manager (usually takes a couple of minutes, but can be longer).
Step 3
Add a custom domain to the hosty.yaml file of the project, for example:
Step 4
Deploy the environment as usual. The application should become available on the custom domain(s) as soon as the deployment is completed.