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,530 points

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,150 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
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
• 58,140 points
0 votes
1 answer

How to get API Gateway function output from a step-function

First of all the step functions executes ...READ MORE

answered Dec 27, 2018 in AWS by Archana
• 5,640 points
0 votes
1 answer
+2 votes
1 answer

How to redirect EC2 Elastic Load Balancer from HTTP to HTTPS?

Hi@akhtar, AWS Application Load Balancers now support native ...READ MORE

answered Aug 13, 2020 in AWS by MD
• 95,300 points
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, 2019 in AWS by anonymous
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,150 points