Skip to content

Commit

Permalink
Update e2e test template and the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
bnusunny committed Jan 21, 2024
1 parent 8690f14 commit 430acf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ 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
```

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

0 comments on commit 430acf5

Please sign in to comment.