Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

api gateway regional custom domain is not working

I'm testing to make mobile game server with AWS's Lambda and API gateway. At the API gateway, I try to make custom domain using 2 types endpoint, regional a.domain.com and edge optimized b.domain.com. The edge optimized endpoint is fine, it works.

But the regional endpoint is not working. it returns ERR_CONNECTION_REFUSED. the regional endpoint url can't submit to record set using aws console.

So I'm using aws-cli for editing record set in the route53.

like image 882
Uisang Song Avatar asked Jan 17 '18 16:01

Uisang Song


People also ask

Is API Gateway Regional?

You can now choose from two types of API endpoints when creating REST APIs and custom domains with Amazon API Gateway. A regional API endpoint is a new type of endpoint that is accessed from the same AWS region in which your REST API is deployed.

How do I change API gateway invoke URL?

If you want to change the URL of the integration endpoint, you need to open the "Integration Request" tab on the method settings, make sure the integration type is set to "HTTP Proxy" and update the "Endpoint URL" field.


1 Answers

I had the same issue.

It appears that when using API Gateway with regional custom domains only HTTPS is supported and API Gateway does not redirect from HTTP to HTTPS.

So just use https://a.domain.com

like image 171
RomanHotsiy Avatar answered Oct 19 '22 17:10

RomanHotsiy