cloudtools / cloudtools/troposphere

Invalid yaml is being generated for step functions

Open
#1,450 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.