Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update e2e test template and README #343

Merged
merged 4 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ sam local start-api

Please note that `sam local` starts a Lambda Runtime Interface Emulator on port 8080. So your web application should avoid port `8080` if you plan to use `sam local`.

## 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.

## Examples

- [FastAPI](examples/fastapi)
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e_tests/fixtures/go-httpbin/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ Resources:
Name: /lambda-web-adapter/e2e/httpbin/oci/rest-api-endpoint
Description: 'Rest API Endpoint for HttpBin function'
Type: String
Value: !Sub "https://httpbin-rest-zip.${Route53HostedZone}/"
Value: !Sub "https://httpbin-rest-oci.${Route53HostedZone}/"

HttpApiEndpoint:
Type: AWS::SSM::Parameter
Properties:
Name: /lambda-web-adapter/e2e/httpbin/oci/http-api-endpoint
Description: 'Http API Endpoint for HttpBin function'
Type: String
Value: !Sub "https://httpbin-http-zip.${Route53HostedZone}/"
Value: !Sub "https://httpbin-http-oci.${Route53HostedZone}/"

AlbEndpoint:
Type: AWS::SSM::Parameter
Expand Down