Skip to content

Commit 2ca6a74

Browse files
committed
Update readme.
1 parent 560aae9 commit 2ca6a74

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,16 @@ const alpha = new Alpha('http://example.com', { retry: {
9090
9191
#### Mocking Lambda
9292
93-
To redirect the Lambda requests to a mocked implementation, set the
94-
`LAMBDA_ENDPOINT` environment variable. The value of this environment variable
95-
will be used when creating the AWS Lambda client.
93+
To redirect the Lambda requests to a mocked implementation, either set the
94+
`LAMBDA_ENDPOINT` environment variable, or use the `lambdaEndpoint` config option:
95+
96+
```javascript
97+
const alpha = new Alpha('lambda:my-lambda', {
98+
lambdaEndpoint: 'http://localstack:4566'
99+
});
100+
```
101+
102+
The value of this option will be used when creating the AWS Lambda client.
96103
97104
### `Alpha.dockerLambda(options, clientOptions)`
98105

0 commit comments

Comments
 (0)