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,540 points
2,024 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
4,090 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,020 points
2,206 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
4,254 views
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, 2019 in AWS by anonymous
22,320 views
0 votes
2 answers

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,170 points
22,386 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