Changing custom domains for your Amazon Lightsail distribution
Last updated: November 1, 2022
You can change the custom domains used by your Amazon Lightsail distribution to another domain or set of domains. To do so, you must first create a new SSL/TLS certificate for the domains that you want to use with your distribution. For more information, see Creating SSL/TLS certificates for your Amazon Lightsail distribution. After the new certificate is validated, you swap the old certificate for the new one, thereby changing the custom domains for your distribution.
For more information about distributions, see Creating Amazon Lightsail distributions.
Changing custom domains for your distribution
Complete the following procedure to change the 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 you want to change the custom domains.
Choose the Custom domains tab on your distribution's management page.
Detach the SSL/TLS certificate that is currently attached to the distribution.
The status of the distribution will change to In progress.
After the distribution's status changes back to Enabled, choose Attach certificate.
In the dropdown menu that appears, select a valid certificate for the domain(s) that you want to use with your distribution.
Verify the certificate information is correct, then choose Attach.
Add a domain assignment to the DNS of your domain to point the domain to your distribution.
The distribution's Status will change to Updating. After the status changes to Ready, the certificate's domain will appear in the Custom domains section. Choose Add domain assignment to point the domain to your distribution.
Choose Add assignment. After a few moments, traffic for the domain that you selected will begin to be accepted by your distribution.
Here are some articles to help you manage distributions in Lightsail: