[{"data":1,"prerenderedAt":59},["ShallowReactive",2],{"workflow-sfn-cfn-stacksets-workflow-cdk":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":15,"diagram":16,"extension":17,"framework":18,"gitHub":19,"introBox":29,"level":35,"meta":36,"resources":37,"s3URL":46,"services":47,"simplicity":49,"stem":50,"testing":51,"type":55,"usecase":56,"videoId":57,"__hash__":58},"workflows\u002Fworkflows\u002Fsfn-cfn-stacksets-workflow-cdk.json","Step Functions to CloudFormation StackSets",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fakshay-singhal.json",{"text":13},[14],"cdk deploy","Create a Step Functions workflow to create\u002Fdelete CloudFormation StackSets in Root Organization unit's linked accounts.","\u002Fassets\u002Fimages\u002Fworkflows\u002Fsfn-cfn-stacksets-workflow-cdk.png","json","AWS CDK",{"template":20,"payloads":25},{"repoURL":21,"templateDir":22,"templateFile":23,"ASL":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fsfn-cfn-stacksets-workflow-cdk\u002F","sfn-cfn-stacksets-workflow-cdk","sfn_cfn_stacksets_pattern\u002Fsfn_cfn_stacksets_pattern_stack.py","statemachine\u002Fstatemachine.asl.json",[26],{"headline":27,"payloadURL":28},"Sample Step Function Payloads","sfn-cfn-stacksets-workflow-cdk\u002Fsample-payloads\u002F",{"headline":30,"text":31},"How it works",[32,33,34],"The CDK application deploys a Step Functions workflow that takes in a user input, and creates\u002Fdeletes 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\u002Fdeleted successfully.","The Step Function workflow requires specific input parameters when triggering the execution, as described in the README.","200",{},{"headline":38,"bullets":39},"Additional resources",[40,43],{"text":41,"link":42},"Step Functions AWS SDK Integrations","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsupported-services-awssdk.html",{"text":44,"link":45},"AWS CloudFormation StackSets - Deploy Stacks in Multiple Accounts & Regions","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Fwhat-is-cfnstacksets.html",null,[48],"cloudformation","2 - Pattern","workflows\u002Fsfn-cfn-stacksets-workflow-cdk",{"headline":52,"text":53},"Testing",[54],"See the GitHub repo for detailed testing instructions.","Standard","Automation","","8awKtZ2bN6FuASv7Y5Ufp2HBk32rrMP2m6_e9kpiix4",1780050912819]