Search code examples
amazon-web-servicesaws-cdkaws-step-functions

Create Step Functions from JSON File in CDK


With an existing Step Functions definition JSON file, how can I use it directly in CDK to create a Step Function?


Solution

  • Use the L1 CfnStateMachine construct. It has a definitionString prop that accepts a stringified JSON definition.