yaml-cfn icon indicating copy to clipboard operation
yaml-cfn copied to clipboard

Please don't transform Fn::Sub: to !<!Sub>

Open S-Cardenas opened this issue 6 years ago • 2 comments
trafficstars

We should be allowed to specify whether we want to output the fully written out version of !<!Sub> or the Fn::Sub version of it. The reason is that the short notation version of this, !Sub, fails when used with Transform::Include. See this example.

S-Cardenas avatar Jul 18 '19 19:07 S-Cardenas

👍 ( + 1 ) this has really wrecked the readability of our Yaml files... have been trying to dynamically add properties / tags to the document tree, buy yamlDump just creates crazy output that doesn't look good when raising PRs across multiple (20+ repos).

johnbeech avatar Sep 29 '20 12:09 johnbeech

No objection, but I don't have the bandwidth to work on it. If the underlying js-yaml supports it, I imagine it would be straightforward; if not, then it might not be worth the effort.

dsagal avatar Sep 29 '20 13:09 dsagal