Thursday, 4 April 2024

Custom domain of AWS API Gateway

Steps to create custom domain for api created by AWS API Gateway

  • Create a API in API gateway
  • Click custom domain names tab. Then use create button to create a custom domain. Need to provide domain name and select a SSL certificate
  • Configure API mappings for that domain name. Here map to the API created in the first step.
  • Create Record in Route 53. Can be cname or alias and point to API Gateway domain name The format is something like wgatsbbsbfgsdgfz.execute-api.us-west-1.amazonaws.com
    1. Click on your custom domain to view its details
    2. Locate the API Gateway Domain Name field

The record name in Route 53 needs to be the same as custom domain name of API Gateway.