Does Amazon API Gateway support endpoint URL with port numbers?

10,123

Solution 1

The supported endpoint port ranges has changed since this question was asked. Amazon AWS API Gateway now supports endpoint ports 80, 443 and [1024, 65535].

Solution 2

Having worked with AWS for the better part of 11 years, and API Gateway since the day of its release, I am unaware of any way to configure it to listen on any port other than 443. If Bryce could cite his source it would be extremely helpful, as this lack of support has been a major pain point (and deal-breaker in almost every case I have experienced) with the implementation of API Gateway.

From the AWS API Gateway FAQ (emphasis mine):

Q: Can I create HTTPS endpoints?

Yes, all of the APIs created with Amazon API Gateway expose HTTPS endpoints only. Amazon API Gateway does not support unencrypted (HTTP) endpoints. By default, Amazon API Gateway assigns an internal domain to the API that automatically uses the Amazon API Gateway certificate. When configuring your APIs to run under a custom domain name, you can provide your own certificate for the domain.

Share:
10,123
Sanath Ballal
Author by

Sanath Ballal

Updated on June 04, 2022

Comments

  • Sanath Ballal
    Sanath Ballal almost 2 years

    I tried using Amazon API Gateway and tested it on an endpoint URL. It works fine if the server is listening on port 80.

    However, if I give the endpoint URL with a different port, (say http://52.xxx.xxx.33:8080) it gives an error. If I visit this URL directly on a browser(GET method), it gives me the required output.

    Is this a feature that is not available yet in AWS API Gateway?

    Screenshot1

    Screenshot2