AWS Step Functions to AWS Step Functions

Step Functions → Step Functions

Creates a Step Functions workflow to launch another state machine execution

This sample project demonstrates how to use an AWS Step Functions state machine to build a modular system.
An outer Step Functionsis used to orchestrate several inner Step Functions. Each inner Step Functionsproduces an output identical with the input and each one can be used to do a specific job (a synchronous or asynchronous job).
Having the output identical with the output makes it a interlocking block and allows to assemble multiple blocks together, in any order, to produce the required output.
The outer Step Functionswill trigger the inner Step Functions, one by one, and waits for each one to finish before continuing. A sample inner Step Functionsis provided which has a single task of type Pass. Replace it with your own Step Function.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-inside-sfn-cdk-python

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Corneliu Croitoru

Corneliu Croitoru

Developer at heart, in 2018 joined AWS as a Solution Architect and since 2021 building, jointly with customers, the most exciting and innovative prototypes on AWS.

Follow on LinkedIn