https://serverless-stack.com/ logo
#help
Title
# help
j

Jonathan Chapman

02/01/2022, 5:45 PM
Is there a way to add a parameter mapping to an API Gateway proxy integration?
s

Sione

02/03/2022, 8:58 PM
Hey @Jonathan Chapman, do you mean a lambda proxy integration or a service proxy integration where you skip the lambda and go straight from API Gateway to a aws service like SQS, EventBridge etc.?
s

Sione

02/04/2022, 6:42 PM
@Jonathan Chapman Ahh I see http proxy. I was digging into it. I was super curios to know. Looks like you can map path params on: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-http.html. Haven't check with the SST API construct. But I imagine it would just work.
j

Jonathan Chapman

02/05/2022, 12:32 AM
the
/{proxy+}
works fine. But I want to make a header into the proxy
it's the
Paramater Mapping
not the
Path Mapping
@Frank sorry to bug you, but do you have an idea how this can be done?
f

Frank

02/22/2022, 2:47 AM
Hey @Jonathan Chapman, do u know if parameter mapping is available to API Gateway HTTP API? Or is it only available to REST API?
j

Jonathan Chapman

02/22/2022, 4:34 AM
It's available on the HTTP API, I'm manually setting it right now cause I couldn't figure it out
f

Frank

02/22/2022, 8:57 PM
Got it! Let me add support for this and try to cut a release w/ it tonite.
j

Jonathan Chapman

02/22/2022, 9:48 PM
tks
@Frank did you add support for this? Looked through the releases and don't see anything about it
f

Frank

03/07/2022, 10:41 AM
Hey @Jonathan Chapman, sorry about the delayed follow up. It will be a part of a bigger release that’ll be coming out later this week/early next week.
j

Jonathan Chapman

03/07/2022, 3:44 PM
cool, tks for the update
2 Views