File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,16 @@ const alpha = new Alpha('http://example.com', { retry: {
90
90
91
91
#### Mocking Lambda
92
92
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.
96
103
97
104
### ` Alpha .dockerLambda (options, clientOptions)`
98
105
You can’t perform that action at this time.
0 commit comments