Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To eliminate the stage name from the URL using AWS API Gateway, you can create a custom domain name by following these steps:

  1. Go to the AWS API Gateway console and select your API.
  2. Under the "Custom Domain Names" menu, select "Create Custom Domain Name."
  3. Enter your domain name and select the certificate type (either ACM or IAM).
  4. Choose the base path mapping for your API and click "Create."
  5. Go to your domain registrar and create a CNAME record that maps your domain to the API Gateway endpoint.
  6. Verify the domain name by clicking on "Verify" in the console.

Once the domain is verified, any requests made to your API using that domain will not include the stage name in the URL.