i am beginner with AWS.
I made a POST endpoint with API GATEWAY. (got xxx.execute-api.eu-west-3.amazonaws.com)
Then, i made A Custom DNS in API GATEWAY tool. (certificate manager, route53)
In Postman, i can reach https://mydns.com but can’t reach mydns.com (without HTTPS in front).
i got Error: connect ECONNREFUSED
I would like to be able to reach my dns without https in front of the URL.
I have POST/GET REQUEST, and i think, something wrong with http but can’t find.
do you have any ideas please ?
thanks by advance
2
Answers
Amazon API Gateway endpoints are HTTPS, not HTTP, that’s why you are getting the ECONNREFUSED error. There’s no way around it.
With API Gateway http endpoints are not possible. You can set up a CloudFront distribution to redirect http traffic to your https destination (API Gateway)