title: Is there a way of running AWS Step Functions locally when defined by CDK?
body: <p>AWS Step Functions may be run in a local Docker environment using <a href="https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-docker.html" rel="noreferrer">Step Functions Local Docker</a>. However, the step functions need to be defined using the JSON-based <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html" rel="noreferrer">Amazon States Language</a>. This is not at all convenient if your AWS infrastructure (Step Functions plus lambdas) is defined using AWS CDK/CloudFormation.</p>
  <p>Is there a way to create the Amazon States Language definition of a state machine from the CDK or CloudFormation output, such that it’s possible to run the step functions locally?</p>
  <p>My development cycle is currently taking me 30 minutes to build/deploy/run my Lambda-based step functions in AWS in order to test them and there must surely be a better/faster way of testing them than this.</p>