Skip to content

Commit

Permalink
Merge branch 'main' into pass-through-events
Browse files Browse the repository at this point in the history
  • Loading branch information
bnusunny authored Jan 21, 2024
2 parents 430acf5 + 6b93c4e commit faff6da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ The [Express.js](examples/expressjs/app/src/index.js) gives a simple example. Mo

Lambda Web Adapter allows developers to develop web applications locally with familiar tools and debuggers: just run the web app locally and test it. If you want to simulate Lambda Runtime environment locally, you can use AWS SAM CLI. The following command starts a local api gateway endpoint and simulate the Lambda runtime execution environment.

## Non-HTTP Event Triggers

Lambda Web Adapter supports non-http event triggers (such as SQS, EventBridge, and Bedrock Agents, etc.). The adapter will forward the event payload to the web application at the path specified by environment variable `AWS_LWA_PASS_THROUGH_PATH`. The default path is `/events`. The web application can retrieve the event payload from the request body.

```bash
sam local start-api
```
Expand Down
20 changes: 13 additions & 7 deletions examples/rust-actix-web-zip/rust_app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit faff6da

Please sign in to comment.