Skip to content

Commit 923ed19

Browse files
authored
Update README.md
1 parent b8d8b2b commit 923ed19

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ plugins:
8787
```
8888

8989
#### Current Gotcha
90-
Please keep this gotcha in mind when using this tips. To generate Logical ID for CloudFormation, the plugin transforms the specified name in serverless.yml based on the following scheme.
90+
Please keep this gotcha in mind if you want to reference the `name` from the `resources` section. To generate Logical ID for CloudFormation, the plugin transforms the specified name in serverless.yml based on the following scheme.
9191

9292
- Transform a leading character into uppercase
9393
- Transform `-` into Dash
@@ -100,26 +100,13 @@ The correct sample is here.
100100
```yaml
101101
stepFunctions:
102102
stateMachines:
103-
etlStateMachine:
103+
myStateMachine:
104104
name: myStateMachine-${self:service}-${opt:stage}
105-
events:
106-
- http:
107-
path: etl-trigger
108-
method: GET
109-
definition:
110-
Comment: "An example of the Amazon States Language using wait states"
111-
StartAt: read_queue
112-
States:
113-
read_queue:
114-
Type: Task
115-
Resource: arn:aws:lambda:${opt:region}:#{AWS::AccountId}:function:${self:service}-${opt:stage}-CheckQueue
116-
End: true
117-
118105
...
119106
120107
resources:
121108
Outputs:
122-
etlStateMachine:
109+
myStateMachine:
123110
Value:
124111
Ref: MyStateMachineDash${self:service}Dash${opt:stage}
125112
```

0 commit comments

Comments
 (0)