Connecting to AWS API Gateway with HTTP
I have spent more time than expected trying to connect to AWS API Gateway with HTTP instead of HTTPS.
For the context, we have legacy IoT devices that make outbound connections via HTTP, not HTTPS. On the receiving side, we have a REST API service. The service, deployed via AWS API Gateway and AWS Lambdas, supports only HTTPS, not HTTP.
So how to connect the two?
It turns out you can use AWS CloudFront Distribution to receive HTTP and forward it to the API Gateway. In the most basic setup, it's a few steps. This StackOverflow question contains more info.
This blog is written by Marcel Krcah, an independent consultant for product-oriented software engineering. If you like what you read, sign up for my newsletter