Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ This is the Serverless Framework plugin for AWS Step Functions.
- [Parallel](#parallel)
- [Catch Failure](#catch-failure)
- [Choice](#choice)
- [Map](#map)

## Install

Expand Down Expand Up @@ -1321,3 +1322,41 @@ plugins:
- serverless-step-functions
- serverless-pseudo-parameters
```

### Map

```yaml

functions:
entry:
handler: handler.entry
mapTask:
handler: handler.mapTask

stepFunctions:
stateMachines:
yourMapMachine:
definition:
Comment: "A Map example of the Amazon States Language using an AWS Lambda Function"
StartAt: FirstState
States:
FirstState:
Type: Task
Resource:
Fn::GetAtt: [entry, Arn]
Next: mapped_task
mapped_task:
Type: Map
Iterator:
StartAt: FirstMapTask
States:
FirstMapTask:
Type: Task
Resource:
Fn::GetAtt: [mapTask, Arn]
End: true
End: true

plugins:
- serverless-step-functions
```