33 questions
-1
votes
0
answers
62
views
AWS API Gateway HTTP API v2 removes padding (`=`) from query parameters when calling Lambda (Java Spring Boot)
I’m using AWS API Gateway HTTP API v2 with a Lambda function running a Java Spring Boot application
The integration type is Lambda proxy integration with payloadFormatVersion: 2.0.
Everything works ...
0
votes
1
answer
43
views
Http Resolver fails whem IamAuthorizer in HttpApi is enabled
I am running into the following situation:
I've configure an apiagateway endpoint (http api) with IamAuthorizer. I am using it as a datasource for appsync. I see the following happening
When I do de ...
0
votes
1
answer
71
views
AWS SAM template doesn't create the Jwt Authorizer
Trying to create the Api Gateway with Lambda and an Authorizer for it. When I create the api and the lambda... everyting is created correctly, but when I add the authorizer, it is not created and if I ...
0
votes
0
answers
53
views
AWS WebSocket API (WSS) Handshake Succeeds, No Data Received
I have a Node.js server hosted on AWS Fargate, listening on port 8080. It's responsive and working as expected.
The server is connected to a WebSocket API, and I’ve tested both tcp:8080 and http:8080 ...
0
votes
0
answers
53
views
AWS API gateway convert XML to JSON conversion
In our case we are having response received as a soap XML and we trying to convert that to JSON payload using the integration response mapping template. But it is not working.
<?xml version = "...
0
votes
1
answer
87
views
AWS Cloudformation Stack API Gateway having Cors error when taking request from React App Locally
My locally hosted React application calls this AWS Serverless API Gateway built on CloudFormation Stack using Infrastructure Composer endpoint but encounters a CORS error. Although I have configured ...
0
votes
0
answers
104
views
How to configure AWS API Gateway for Lambda gzipped json response
I'm trying to create an AWS Lambda accessed by API Gateway which returns gzipped json response.
This is my lambda code (typescript):
import { DB } from '@/DB/db';
import zlib from 'zlib';
import { ...
0
votes
0
answers
185
views
AWS API gateway with Python Websocket
I am trying to create a chat app using Flask Websocket hosted on EC2 and expose using API Gateway. My App has both HTTP as well as SocketIO connection. My request flow is Browser -> API Gateway -&...
1
vote
0
answers
235
views
API Gateway Caching not working , request still going to backend
I am trying to enable API gateway caching but its not caching my requests.
So Basically I have 2 path /servicename/test/* and /servicename/abctest/* . these need to be cached. I added these 2 paths ...
0
votes
1
answer
540
views
Do I have to add the OPTIONS method when enable CORS for an HTTP API?
My situation:
I have an HTTP API working with AWS Lambda proxy Integrations in API Gateway, with GET and POST methods.
I want to enable CORST for it.
Doubt, do I have to add the OPTIONS method to ...
0
votes
1
answer
477
views
Issue accessing root URL in API Gateway
I had an API Gateway instance and all was working well until I added a custom domain with some API Mappings.
I had to re-factor my routes a little, but ended up with a single /{proxy+} route which ...
1
vote
1
answer
291
views
Why AWS APIG returns Authorization errors on incorrect endpoint
While invoking an endpoint which is not configured in APIG and supplying an Authorization header (JWT token), the APIG responds with
{
"message": "Authorization header requires '...
-1
votes
1
answer
1k
views
API Gateway timeout on HTTP Rest API Request
I have deployed my legacy application which has few HTTP Rest API's which responds in 1 minute (or greater). As of now there is no way to change this REST application performance.
In front I have API ...
2
votes
2
answers
1k
views
AWS API Gateway to EventBridge pass request.headers
I have been using AWS_PROXY integration from API Gateway to trigger AWS Lambda functions many times and in the event I always receive 'headers' along with 'body' and many other parameters.
Now I try ...
2
votes
1
answer
3k
views
How can I add a custom authoriser to AWS CDK v2 apigatewayv2 Websockets?
I have an ApiGateway RestApi with a custom authoriser in AWS CDK v2. Now I want to create a WebSocket with an authoriser.
I started by following this guide Stack 3: Api Gateway Websocket API AWS CDK ...
-2
votes
1
answer
103
views
Limit programmatic GET requests to AWS S3 buckets to prevent accidental bucket increases / costs
I have a bucket containing many files with JSON. For compliance reasons, the bucket is open to the public. We want to try to put something in place to limit the requests to the bucket so that we don't ...
3
votes
1
answer
903
views
API Gateway v2 not returning CORS headers from OPTIONS call
Got an API Gateway v2 that is pointing at a Lambda that is running into CORS issues when I send a POST from a website running on localhost. As part of the troubleshooting I'm mimicking a preflight ...