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
:warning: Version 2.0 with breaking changes see [usage](#usage):warning:
9
10
## Documentation
10
11
11
12
-[Install](#install)
@@ -51,7 +52,7 @@ You must have this plugin installed and correctly specified statemachine definit
51
52
Example of statemachine definition you can see [here](https://github.com/horike37/serverless-step-functions#setup).
52
53
53
54
# Usage
54
-
After all steps are done, need to add to section **custom** in serverless.yml the key **stepFunctionsOffline** with properties *stateName*: path to lambda function.
55
+
After all steps are done, need to add to section **custom** in serverless.yml the key **stepFunctionsOffline** with properties *stateName*: name of lambda function.
55
56
56
57
For example:
57
58
@@ -65,11 +66,18 @@ plugins:
65
66
66
67
custom:
67
68
stepFunctionsOffline:
68
-
FirstLambda: firstLambda/index.handler
69
+
stepOne: firstLambda (v2.0)
69
70
# ...
70
71
# ...
71
-
SecondLambda: myDir/index.main
72
-
72
+
stepTwo: secondLambda (v2.0)
73
+
74
+
functions:
75
+
firstLambda:
76
+
handler: firstLambda/index.handler
77
+
name: TheFirstLambda
78
+
secondLambda:
79
+
handler: secondLambda/index.handler
80
+
name: TheSecondLambda
73
81
stepFunctions:
74
82
stateMachines:
75
83
foo:
@@ -88,8 +96,8 @@ stepFunctions:
88
96
```
89
97
90
98
Where:
91
-
- `FirstLambda` is the name of step in state machine
92
-
- `firstLambda/index.handler`is the path to Lambda
99
+
- `StepOne` is the name of step in state machine
100
+
- `firstLambda`is the name of function in section **functions**
93
101
94
102
# Run Plugin
95
103
```bash
@@ -106,23 +114,24 @@ By default `process.env.STEP_IS_OFFLINE = true`.
106
114
# What does plugin support?
107
115
| States | Support |
108
116
| ------ | ------ |
109
-
| ***Task*** | At this moment plugin **does not support fields** *Retry*, *Catch*, *TimeoutSeconds*, *HeartbeatSeconds*
117
+
| ***Task*** | At this moment plugin **does not support fields** *Retry*, *Catch*, *TimeoutSeconds*, *HeartbeatSeconds* |
0 commit comments