Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Step Functions to CloudFormation StackSets

Create a Step Functions workflow to create/delete CloudFormation StackSets in Root Organization unit's linked accounts.

The CDK application deploys a Step Functions workflow that takes in a user input, and creates/deletes the StackSets instances in all the linked AWS Accounts for the root Organizational Unit (OU).
There are two main flows - to create a StackSet or to delete a StackSet. Each flow also creates or deletes the StackSet instances, checks the progress of stackset instance operations, and retries until stackset instances are created/deleted successfully.
The Step Function workflow requires specific input parameters when triggering the execution, as described in the README.

GitHub icon Visit the GitHub repo for this workflow.

< Back to workflows

Download

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/sfn-cfn-stacksets-workflow-cdk/ cd step-functions-workflows-collection/sfn-cfn-stacksets-workflow-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: cdk destroy.

Presented by Akshay Singhal

Akshay Singhal is a Sr. Technical Account Manager (TAM) for AWS Enterprise Support focusing on the Security ISV (Independent Software Vendors) segment and loves everything serverless.

Follow on LinkedIn