Enabling custom domains for your Amazon Lightsail distributions
Last updated: July 23, 2020
Enable custom domains for your Amazon Lightsail distribution to use your registered domain
names with your distribution. Before you enable custom domains, your distribution accepts
traffic only for the default domain that is associated with your distribution when you first
create it (e.g.,
123456abcdef.cloudfront.net). When you enable custom domains, you
must choose the Lightsail SSL/TLS certificate that you created for the domains that you want
to use with your distribution. After you enable custom domains, your distribution accepts
traffic for all of the domains that are associated with the certificate that you chose.
The domain names associated with the SSL/TLS certificate cannot be in use by another distribution across all Amazon Web Services (AWS) accounts, including distributions on the Amazon CloudFront service. You will be able to create the certificate for the domains, but you will not be able to use it with your distribution.
For more information about distributions, see Content delivery network distributions in Amazon Lightsail.
Before you get started, you need to create a Lightsail distribution. For more information, see Creating Amazon Lightsail distributions.
You also should have created and validated an SSL/TLS certificate for your distribution. For more information, see Creating SSL/TLS certificates for your Amazon Lightsail distribution and Validating SSL/TLS certificates for your Amazon Lightsail distribution.
Enable custom domains for your distribution
Complete the following procedure to enable custom domains for your distribution.
Sign in to the Lightsail console.
On the Lightsail home page, choose the Networking tab.
Choose the name of the distribution for which want to enable custom domains.
Choose the Custom domains tab on your distribution's management page.
Under the Use your custom domains with HTTPS section of the page, use the toggle to enable custom domains with HTTPS for your distribution.
To enable custom domains, choose the SSL/TLS certificate that you want to use with your distribution.
The domain names that are specified on the certificate are the domain names that are added to your distribution.
Your request to enable custom domains is submitted, and the status of your distribution is changed to In progress. After a while, the status of your distribution changes to Enabled.
After you enable custom domains for your distribution, you should update the DNS records
of the domains so that traffic for those domains is directed to your distribution. You do this
by creating alias records that point to the default domain name of your distribution (e.g.,
123456abcdef.cloudfront.net). For more information, see Pointing your domains to your
Amazon Lightsail distributions.
Here are some articles to help you manage distributions in Lightsail: