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,103 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,170 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
3,290 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
• 58,100 points
1,621 views
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
3,017 views
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,380 points
1,450 views
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
16,654 views
0 votes
2 answers

How to recover lost private key of an EC2 instance?

You can replace the new key using ...READ MORE

answered Nov 17, 2021 in AWS by anonymous
14,971 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP