7,789 questions
1 vote
1 answer
53 views
Issue consuming API that returns Base64 Excel file in Angular
I am facing difficulties consuming an API in Angular that returns an Excel file encoded in Base64. The API is configured in AWS API Gateway and uses a Lambda function to generate the file. Although ...
0 votes
0 answers
27 views
Unable to transform request AWS Gateway VTL
I have the following pulumi go code which uses AWS Integration to start a StepFunction. func DealRequestTemplate(stateMachineArn pulumi.StringInput) pulumi.StringInput { return pulumi.Sprintf(`#...
-3 votes
0 answers
79 views
How to use the built-in request validators instead of creating new resource?
In order to enforce query params validation, we have to assign Request validator in the method request. In my case I want to enforce required validation to startDate and endDate query params (Validate ...
0 votes
0 answers
55 views
AWS CDK use api gateway in a nested stack
I have this api gateway in my main stack: api_gateway = _api_gw.LambdaRestApi( self, f"{construct_id}-gw-api", handler=lambda_hello, rest_api_name=f"gw-api{env_ext}"...
0 votes
0 answers
42 views
FastAPI: PDF upload works when called directly inside Kubernetes or locally, but results in blank files when routed through API Gateway/NGINX
I’m running a FastAPI service in Kubernetes that accepts multipart/form-data uploads and stores files in S3. The upload endpoint works fine when I call it directly inside the cluster using the service ...
0 votes
1 answer
86 views
Spring Boot OAuth2 with Casdoor behind AWS Lambda + HTTP API v2: state parameter encoding issue
I’m developing a Spring Boot application deployed behind an AWS API Gateway (HTTP API v2) with Lambda (handler based on SpringBootLambdaContainerHandler and HttpApiV2ProxyRequest). I’m using OAuth2 ...
0 votes
1 answer
59 views
Significant import discrepancy in Python CDK v2 when enabling API Gateway logging
I have been modifying an AWS CDK v2 stack (Python) to generate an API Gateway v2 stage with logging enabled. Sounds simple, there are countless examples on the internet, and countless agentic coding ...
0 votes
0 answers
20 views
awsEndpointRequestId not being consumed by headers for HTTP APIGateway
According the Customize HTTP API access logs, the logging variable $context.awsEndpointRequestId is populated from x-amz-request-id or x-amzn-requestId header. I am directly hitting the my HTTP ...
1 vote
1 answer
128 views
CredentialsProviderError using ApiGatewayManagementApiClient in Serverless Framework Offline
I'm having issues trying to get Serverless Framework (using the Offline plugin) to be able to use the ApiGatewayManagementApiClient to send WebSocket responses offline. It's probably just using the ...
1 vote
0 answers
53 views
Mongodb not available for my AWS Lambda function
I have tried to import mongodb into my lambda function and I keep getting an error message when I attempt to test it. All the recommended resolutions I have seen assume I am working in an environment ...
1 vote
1 answer
89 views
Get AWS API Gateway API keys that don't match nameQuery parameter in get_api_keys() boto3 AWS SDK
As the title says, I can get all API keys in API Gateway that start with the contents of nameQuery, but is it possible to get all API keys that don't match nameQuery? I'm looking to filter out some ...
0 votes
0 answers
44 views
Is it possible to create an HTTP API Gateway integration to EventBridge that reads the detail-type from a detail-type attribute of the payload?
My input to API Gateway looks like this: { "detail": { "stuff": "goeshere" }, "detail-type": "ApiGatewayTest", "source&...
0 votes
1 answer
29 views
How is the AWS::Serverless::Api DefinitionBody auto-generated?
According to the documentation: If neither DefinitionUri nor DefinitionBody are specified, SAM will generate a DefinitionBody for you based on your template configuration. However, I can't seem to ...
1 vote
2 answers
82 views
Can I transform a query string parameter with AWS API Gateway using a Lambda proxy integration?
The AWS docs here state that "You can use parameter mapping in your integration request for proxy and non-proxy integrations, but to use parameter mapping for an integration response, you need a ...
0 votes
0 answers
51 views
Proxy JSON Response Of Step Function Through API Gateway
My step function outputs: { "statusCode": 400, "body": { "error": "Email already associated with another account" } } (Or ...