Migrate a custom domain name to a different API endpoint type in API Gateway
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.
The following procedure shows how to migrate a Regional custom domain name to an edge-optimized custom domain name.