You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Description
4
4
5
-
`failure-lambda` is a small Node module for injecting failure into AWS Lambda (https://aws.amazon.com/lambda). It offers a simple failure injection wrapper for your Lambda handler where you then can choose to inject failure by setting the `failureMode` to `latency`, `exception`or `statuscode`. You control your failure injection using SSM Parameter Store.
5
+
`failure-lambda` is a small Node module for injecting failure into AWS Lambda (https://aws.amazon.com/lambda). It offers a simple failure injection wrapper for your Lambda handler where you then can choose to inject failure by setting the `failureMode` to `latency`, `exception`, `statuscode`or `diskspace`. You control your failure injection using SSM Parameter Store.
5. Add an environment variable to your Lambda function with the key FAILURE_INJECTION_PARAM and the value set to the name of your parameter in SSM Parameter Store.
31
31
6. Try it out!
@@ -41,6 +41,7 @@ Edit the values of your parameter in SSM Parameter Store to use the failure inje
41
41
*`minLatency` and `maxLatency` is the span of latency in milliseconds injected into your function when `failureMode` is set to `latency`.
42
42
*`exceptionMsg` is the message thrown with the exception created when `failureMode` is set to `exception`.
43
43
*`statusCode` is the status code returned by your function when `failureMode` is set to `statuscode`.
44
+
*`diskSpace` is size in MB of the file created in tmp when `failureMode` is set to `diskspace`.
44
45
45
46
## Example
46
47
@@ -56,6 +57,11 @@ Inspired by Yan Cui's articles on latency injection for AWS Lambda (https://hack
56
57
57
58
## Changelog
58
59
60
+
### 2019-12-30 v0.1.0
61
+
62
+
* Added disk space failure.
63
+
* Updated example application to store example file in tmp.
0 commit comments