You can migrate your custom domain name between edge-optimized and Regional endpoints. You can't migrate a
public custom domain name to a private custom domain name. You first add the new endpoint configuration type to the
existing endpointConfiguration.types
list for the custom domain name. Next, you set up a DNS record to
point the custom domain name to the newly provisioned endpoint. Finally, you remove the obsolete custom domain name
configuration data.
Considerations
The following are considerations for migrating your custom domain between a Regional API endpoint and an edge-optimized API endpoint.
An edge-optimized custom domain name requires a certificate provided by ACM from the US East (N. Virginia) –
us-east-1
Region. This certificate is distributed to all the geographic locations.-
A Regional custom domain name requires a certificate provided by ACM in the same Region hosting the API. You can migrate an edge-optimized custom domain name that is not in the
us-east-1
Region to a Regional custom domain name by requesting a new ACM certificate from the Region that is local to the API. -
It might take up to 60 seconds to complete a migration between an edge-optimized custom domain name and a Regional custom domain name. The migration time also depends on when you update your DNS records.
Migrate custom
domain names
The following procedure shows how to migrate an edge-optimized custom domain name to a Regional custom domain name.
Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway
. Choose Custom domain names from the main navigation pane.
Choose an edge-optimized custom domain name.
For Endpoint configuration, choose Edit.
Choose Add Regional endpoint.
For ACM certificate, choose a certificate.
The Regional certificate must be in the same Region as the Regional API.
Choose Save changes.
Set up a DNS record to point the Regional custom domain name to this Regional hostname. For more information, see configuring Route 53 to route traffic to API Gateway.
-
After you confirm that your DNS configuration is using the correct endpoint, you delete the edge-optimized endpoint configuration. Choose your custom domain name, and then for Edge-optimized endpoint configuration, choose Delete.
Confirm your choice and delete the endpoint.
The following procedure shows how to migrate a Regional custom domain name to an edge-optimized custom domain name.
Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway
. In the main navigation pane, choose Custom domain names.
Choose a Regional custom domain name.
-
For Endpoint configuration, choose Edit.
Choose Add edge-optimized endpoint.
For ACM certificate, choose a certificate.
The edge-optimized domain certificate must be created in the
us-east-1
Region.Choose Save.
Set up a DNS record to point the edge-optimized custom domain name to this edge-optimized hostname. For more information, see configuring Route 53 to route traffic to API Gateway.
-
After you confirm that your DNS configuration is using the correct endpoint, you delete the Regional endpoint configuration. Choose your custom domain name, and then for Regional endpoint configuration, choose Delete.
Confirm your choice and delete the endpoint.