Skip to content

nathanagez/aws-cdk-state-machine-asl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS CDK state machine to ASL definition 🔥

Convert your AWS CDK state machine to an ASL file.

This tool only works with synthesized AWS CDK's CloudFormation stacks.

It parses the DefinitionString property of a AWS::StepFunctions::StateMachine, resolves intrinsic functions and generates an ASL definition file.

Don't forget to star ⭐

How to use ? 🧑‍🏫

npm install -g cdk-asl-extractor

Synthesize your AWS CloudFormation template

cdk synth

Locate the synthesized CloudFormation template (inside cdk.out directory) and generate the ASL definition.

cdk-asl-extractor <path-to-your-cloudformation-json-file>

Example with the sample CloudFormation stack

cdk-asl-extractor ./tests/sample-cloudformation.json

Tests 🧪

yarn test

Watch mode 👁️

yarn test --watch