File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -154,3 +154,26 @@ plugins:
154
154
- serverless-step-functions
155
155
` ` `
156
156
157
+ ### Adding a custom name for a stateMachine
158
+ In case you need to interpolate a specific stage or service layer variable as the
159
+ stateMachines name you can add a ` Name` property to your yaml.
160
+
161
+ ` ` ` yml
162
+ service: messager
163
+
164
+ functions:
165
+ sendMessage:
166
+ handler: handler.sendMessage
167
+
168
+ stepFunctions:
169
+ stateMachines:
170
+ sendMessageFunc:
171
+ Name: sendMessageFunc-${self:custom.service}-${opt:stage}
172
+ definition:
173
+ <your definition>
174
+
175
+ plugins:
176
+ - serverless-step-functions
177
+ ` ` `
178
+
179
+ Please note, that during normalization some characters will be changed to adhere to CloudFormation templates.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " serverless-step-functions" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " The module is AWS Step Functions plugin for Serverless Framework" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments