Questions tagged [amazon-api-gateway]
64 questions
1
vote
0 answers
ECS task to VPC endpoint/NAT Gateway routing
we have an ECS task that makes Rest API calls of two types: /path1 and /path2 in a Private subnet. We route the requests to Internet Gateway through a NAT gateway present in a public subnet.
Flow: ECS task -> NAT Gateway -> Internet Gateway.
Now, we…
![](../../users/profiles/965655.webp)
pds
- 11
- 1
1
vote
1 answer
AWS HTTP Gateway: private integration routing without path variables
I've been setting up an HTTP gateway for the first time and came across an issue with private integrations. I want all my integrations to be private but it doesn't work well with routing.
I have a private integration with a $default route and it…
![](../../users/profiles/221858.webp)
dmitrybelyakov
- 121
- 3
1
vote
1 answer
What is causing BadRequestException when calling the ExecuteStatement operation on Aurora Serverless db
I have a lambda function that retrieves records from AWS Aurora Serverless db. Now I thought of adding api gateway to trigger the lambda function but I get this error
Connect an AWS Lambda function triggered by API Gateway to Aurora Serverless MySQL…
![](../../users/profiles/951256.webp)
sji gshan
- 11
- 1
1
vote
1 answer
How do I use AWS SAM to deploy an AWS API Gateway and AWS Java Lambda including POST caching and disabling logging
How do I deploy a lambda Java function with an API gateway REST interface including caching POST methods using AWS Serverless Application Model?
![](../../users/profiles/306795.webp)
Tim
- 30,383
- 6
- 47
- 77
1
vote
1 answer
How can I track user requests to my external API on AWS?
I'm a bit of a beginner but I'm working on creating an external API with AWS SAM (using API Gateway and Lambda), and I want a way to track & monitor usage.
Some options I was considering:
1. Store the requests in a database
Pro: It would allow me to…
![](../../users/profiles/646995.webp)
A Poor
- 113
- 4
1
vote
2 answers
On AWS, is it possible to have CloudFront proxy requests to API Gateway while maintaining the request's query string?
I have a CloudFront distribution configured with multiple Origins, including an API Gateway deployment.
I'm trying to create a Behavior on CloudFront so that any requests received to a /api/* path will be redirected to the API Gateway and what I did…
![](../../users/profiles/414004.webp)
Carlos H Romano
- 111
- 5
1
vote
0 answers
Serverless Lambda infrastructure for listening to Websocket
I'm still new in the AWS Lambda & Api Gateway world, but it seems a good fit to my new project.
I still have some concerns, and I'll be very happy if you can assist.
In my new project (Financial data), I need to deliver different type of data :…
![](../../users/profiles/123258.webp)
Francois
- 13
- 4
0
votes
1 answer
How to solve python POST response 405
How to solve python POST response 405?
import requests
import json
from requests.auth import HTTPBasicAuth
myHeaders = { 'accept': 'application/json', 'content-type': 'application/json', 'X-Killbill-CreatedBy': 'demo', 'authorization':'Basic…
![](../../users/profiles/549326.webp)
Sukhen Santra
- 1
- 1
- 4
0
votes
1 answer
Why use AWS API Gateway instead of naked Lambda?
This is more of a suggestion that I need.
What is the need for API Gateway when we can directly execute Lambda functions from the apps?
What are the missing pieces provided by API Gateway which we will otherwise miss while using naked lambda?
![](../../users/profiles/538926.webp)
snehanshu.js
- 1
- 1
0
votes
1 answer
API Gateway and VPC access lists
My understanding is that controlling IP address access to AWS api-gateway is via Resource policies.
This does not sound ideal as it would involve deploying the API each time new access was required (change control issues). Can this access not be…
![](../../users/profiles/534422.webp)
nipy
- 107
- 2
0
votes
0 answers
HAProxy to Amazon API Gateway with custom domain
Hi we have been trying to handle an inbound request from HAProxy and use API Gateway to handle the request.
The flow is domain1.com is the end point at HAProxy.
HAProxy should then forward to request to a API Gatway on amazon which is using a custom…
![](../../users/profiles/366536.webp)
Thomas
- 1
- 1
0
votes
1 answer
AWS API Gateway in China
We are planning to launch an app that will be available globally, including China and we plan to use AWS for this.
However, because of the "Great Firewall of China" we may run into problems:
The app may not be permitted to connect to an API…
![](../../users/profiles/269789.webp)
aljo f
- 103
- 3
0
votes
1 answer
Unable to authorize Amazon API Gateway using API Key
As per amazon's documentation (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-setup-api-key-with-console.html) I am supposed to see a dropdown near API KEY. Although I have admin access I don't get such an option.
Please…
![](../../users/profiles/488971.webp)
Surya
- 243
- 1
- 2
- 8
0
votes
0 answers
How to block a request which does not has a header using Amazon Web Services
My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone suggest me which AWS service will helpful to do this…
![](../../users/profiles/461392.webp)
Gayathri K
- 39
- 5
0
votes
1 answer
Does basepath mapping create a CloudFront Distribution
Does basepath mapping on an API in API gateway use a 'hidden' cloudfront distribution?
I have an API on API Gateway, with base path mappings on a domain. However, this doesn't go through cloudfront--and thus no https, only http.
When I try to create…
![](../../users/profiles/460185.webp)
keithRozario
- 146
- 7