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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With