aws / aws/serverless-application-model

Lambda Custom integration support

Open
#1,841 0 comments 2 reactions 0 assignees View on GitHub
maintainer/need-response stage/pm-review type/feature
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

There are cases we want to remove certain values from http request header before calling lambda. For example we don't Lambda see API Key value, or other credential.

This is not possible using Lambda Proxy integration. We need some support for custom integration of Lambda so we can use request template to modify request.

The serverless framework currently support that, and SAM missing this feature. It would be great if we can add following to lambda event type
```
integration: lambda
request:
template:
text/xhtml: '{ "stage" : "$context.stage" }'
application/json: '{ "httpMethod" : "$context.httpMethod" }'
```

Thanks,
Ali

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.