diff --git a/README.md b/README.md index d340f396..a9eda775 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 +``` \ No newline at end of file