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
This plugin works only with [serverless-step-functions](https://github.com/horike37/serverless-step-functions).
@@ -55,6 +52,54 @@ You must have this plugin installed and correctly specified statemachine definit
55
52
56
53
Example of statemachine definition you can see [here](https://github.com/horike37/serverless-step-functions#setup).
57
54
55
+
# Usage
56
+
After all steps are done, need to add to section **custom** in serverless.yml the key **stepFunctionsOffline** with properties *stateName*: name of lambda function.
57
+
58
+
For example:
59
+
60
+
```yaml
61
+
service: ServerlessStepPlugin
62
+
frameworkVersion: ">=1.13.0 <2.0.0"
63
+
plugins:
64
+
- serverless-step-functions-offline
65
+
66
+
# ...
67
+
68
+
custom:
69
+
stepFunctionsOffline:
70
+
stepOne: firstLambda #(v2.0)
71
+
# ...
72
+
# ...
73
+
stepTwo: secondLambda #(v2.0)
74
+
75
+
functions:
76
+
firstLambda:
77
+
handler: firstLambda/index.handler
78
+
name: TheFirstLambda
79
+
secondLambda:
80
+
handler: secondLambda/index.handler
81
+
name: TheSecondLambda
82
+
stepFunctions:
83
+
stateMachines:
84
+
foo:
85
+
definition:
86
+
Comment: "An example of the Amazon States Language using wait states"
0 commit comments