Questions tagged [aws-http-api]
71 questions
0
votes
1 answer
What is the proper way to return data using HTTP-API(v2) + Lambda + DynamoDB as a JSON response?
I used to use the REST API, but since v2 I find myself using it more.
Is there a proper way to return data "neatly" other than manipulating the database response before returning?
I used to use the model feature with REST (v1). What's the…

Imnotapotato
- 5,308
- 13
- 80
- 147
0
votes
1 answer
How to use AWS WAF to protect API Gateway with HTTP APi?
I am deploying an POC environment with API gateway in front of Lambda and HTTP API would be sufficient for our usage (REST API wouldn't be used). I am planning to use AWS Web application as a protection measure in front of API gateway with HTTP API…

Kin.Yip
- 3
- 1
0
votes
1 answer
Serverless Deployment on Localstack for Python HTTP API
I have created from serverless project from aws-python-http-api template
My serverless.yml file looks like below
service: aws-http-api
frameworkVersion: '3'
plugins:
- serverless-localstack
provider:
name: aws
stage: local
runtime:…

Hasan
- 1
- 2
0
votes
2 answers
Creating an ApiGatewayV2 HTTP API Integration with Subtype SQS-SendMessage Fails with 400
I'm using serverless@3.23.0 to deploy my services, and I'm looking at setting up an HTTP API Proxy to an SQS Service.
I've handled this previously through this plugin - serverless-apigateway-service-proxy. Unfortunately this sets up the proxy…

howdy_miguel
- 473
- 5
- 17
0
votes
1 answer
Why CloudFront behavior pattern not working as expected?
I have my custom domain being served from s3 bucket via cloudfront which is working fine.
Now I have added another origin which is an endpoint from api gateway that has some routes that I want to access like
mydomain.com/app/*
What I have done so…

fastAsTortoise
- 631
- 6
- 17
0
votes
2 answers
HTTP API Gateway - How to map authorizer to route in Terraform?
In console, you have to "attach" the authorizer to a route. How is this achieved in TF?

Em Ma
- 17
- 3
0
votes
0 answers
AWS HTTP API Gateway with dozens of routes, how should Lambda integration(s) be structured?
I tried creating a single Lambda function using the Node.js language, to handle a few routes of the API. Already the function seems too complex. Is it more common to have individual Lambda functions as integration for each route ?
Does anyone have…

gwhiz
- 135
- 9
0
votes
0 answers
Using HTTP API to call multiple services running on AWS ECS
My goal here is to deploy two spring boot services using AWS ECS Fargate in a private subnet and access them via AWS API Gateway. Basically, I want to use a single HTTP API and then based on the path it should call the appropriate service. I am…

Loui
- 533
- 17
- 33
0
votes
1 answer
AWS HTTP Api Route To lambda Integration shell(cli) command
I want to automate things. I have created a AWS lambda using shell command. And also HTTP route using shell command in API Gateway. Now i want to connect the route and lambda using shell command. Can anyone explain the command how to achieve…

muhammad Yousaf
- 49
- 6
0
votes
1 answer
how i can add a http api stage in serverless
I am trying to deploy a serverless application to different stages (prod and dev). I want to deploy it to a single API gateway on two different…

Mradul Jain
- 62
- 12
0
votes
1 answer
AWS deregister an instance from cli and register back
Issue ->
We have few nodes that are in a asg and fronted by an alb. We have many target group. in some cases, we have some nodes in two or more different target groups. When we update our software, we need to deregister them from all the target…

mbdow
- 43
- 7
0
votes
1 answer
Amazon API Gateway HTTP API: Custom types in lambda functions in go
I am a little bit confused about how to get custom types passed into my Lambda function using golang and sitting behind a HttpApi.
Consider the following go lambda handler, which is almost a copy of the example from the documentation.
type…

Mark
- 7,507
- 12
- 52
- 88
0
votes
1 answer
is ok to choose AWS HTTP API gateway for a mobile application?
I am trying to decide which aws apigateway version choose for my application (HTTP vs REST API gateway).
I am experimenting with AWS HTTP API gateway to see if it works fine for my use case.
These are my requirements:
The only client is a mobile…

user3849960
- 120
- 2
- 11
0
votes
1 answer
AWS SAM - local api call to return version 2 of the event
I am using AWS SAM to test my Api gateway and lambdas locally.
When executing sam local start-api and calling a lambda, I'd like the event to be of version 2.0 format instead of version 1.
I am using CDK HttpApi construct from…

Greg Wozniak
- 5,209
- 3
- 26
- 29
0
votes
1 answer
Write putObject to S3 directly from HTTP API in API Gateway
My intention is to create an HTTP API on Amazon API Gateway that writes a file to S3 using the PutObject action via the S3 API (without calling Lambda in between). This is the PutObject request syntax:…

John
- 11
- 2