Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Amazon API Gateway support endpoint URL with port numbers?

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

like image 512
Sanath Ballal Avatar asked Aug 27 '15 06:08

Sanath Ballal


2 Answers

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].

like image 111
Bryce Thomas Avatar answered Nov 07 '22 21:11

Bryce Thomas


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.

like image 3
Brad Roether Avatar answered Nov 07 '22 19:11

Brad Roether