Skip to content

Instantly share code, notes, and snippets.

View lober-io's full-sized avatar

Fabian Lober lober-io

View GitHub Profile
@lober-io
lober-io / api_gateway_full_request_passthrough.vtl
Last active November 6, 2023 14:48
Example mapping template to pass everything to a Lambda non-proxy integration like in a proxy integration to use it with Powertools for AWS Lambda.
#set($inputParams = $input.params())
{
"resource": "$context.resourcePath",
#set( $contextPath = $context.path )
#set( $path = $contextPath.replace("{id}", "$input.params().path.get('id')") )
"path": "$path",
"httpMethod":"$context.httpMethod",
"headers": {
#set($params = $inputParams.get("header"))