troposphere icon indicating copy to clipboard operation
troposphere copied to clipboard

Invalid yaml is being generated for step functions

Open chizou opened this issue 6 years ago • 1 comments

When using StepFunctions, to_yaml might mangle the JSON state machine which will cause the following error in CloudFormation:

Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: These fields are required: [States, StartAt] at /, SCHEMA_VALIDATION_FAILED: Field 'Fn::Sub' is not supported at /' (Service: AWSStepFunctions; Status Code: 400; Error Code: InvalidDefinition; Request ID: be316435-9d16-11e9-b259-cfd447cf8c59)

This is related to the following issue: https://github.com/awslabs/aws-cfn-template-flip/pull/80

#799 and might be related to this

chizou avatar Jul 02 '19 22:07 chizou

This issue is fixed with this PR: https://github.com/cloudtools/troposphere/pull/1449

chizou avatar Jul 02 '19 22:07 chizou