AWSTemplateFormatVersion: '2010-09-09' Description: An example template for a Step Functions state machine. Resources: MyStateMachine: Type: AWS::StepFunctions::StateMachine Properties: StateMachineName: HelloWorld-StateMachine # Alert on Bad JSON DefinitionString: |- { "StartAt": "HelloWorld", "States": { "HelloWorld": { "Type": "Task", "Resource": "arn:aws:lambda:us-east-1:111122223333:function:HelloFunction", "End": true } } RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1 MyStateMachine2: Type: AWS::StepFunctions::StateMachine Properties: StateMachineName: HelloWorld-StateMachine # Missing StartsAt # ByeWorld is missing Resource # HelloWorld is missing Type # Type doesn't exist DefinitionString: Fn::Sub: |- { "States": { "HelloWorld": { "Resource": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:HelloFunction", "Next": "GoodDay" }, "GoodDay": { "Type": "DNE", "Next": "ByeWorld" }, "ByeWorld": { "Type": "Task", "End": true } } } RoleArn: arn:aws:iam::111122223333:role/service-role/StatesExecutionRole-us-east-1