How to make API Gateway accept http instead of https?

0 votes

I have a Lambda function proxied by API Gateway. However, API Gateway only expose https and not http.From my research i found out that API Gateway doesn’t  accept http.

So my question is how to translate http client calls to https and send to api gateway?

Aug 21, 2018 in AWS by datageek
• 2,440 points
36 views

1 answer to this question.

0 votes

You can put a Cloudfront distribution in front of API Gateway with to following setup:

  • Origin Protocol Policy: HTTPS Only
  • Viewer Protocol Policy: HTTP and HTTPS
  • Forward Headers: None
  • Object Caching: Use Origin Cache Headers
As far as i know this worked for me.Give it a try.
answered Aug 21, 2018 by Archana
• 4,090 points

Related Questions In AWS

0 votes
1 answer

How to Enable CORS for an AWS API Gateway Resource

Since you're using Lambda Proxy integration for ...READ MORE

answered Jul 10, 2018 in AWS by Hammer
• 360 points
630 views
0 votes
1 answer
0 votes
1 answer

In Amazon Data Pipeline, how to make sure only once instance of a pipeline is running at any time?

On the CopyTablesActivity, you could set a lateAfterTimeout attribute ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 56,520 points
264 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

How to display just the name of files using aws s3 ls command?

aws s3 ls s3://<your_bucket_name>/ | awk '{print ...READ MORE

answered Mar 17 in AWS by anonymous
3,042 views
0 votes
1 answer

How to recover lost private key of an EC2 instance?

I'm afraid it's not possible When you launch ...READ MORE

answered Sep 25, 2018 in AWS by Archana
• 4,090 points
190 views