cloud-formation-viz icon indicating copy to clipboard operation
cloud-formation-viz copied to clipboard

Support YAML

Open nikolay opened this issue 7 years ago • 3 comments

CloudFormation has been supporting YAML for months...

nikolay avatar Jun 18 '17 20:06 nikolay

Hello @nikolay. I'm afraid I'm not using this tool myself at the moment and don't have the time to add YAML support myself. I'd be very happy to take a PR that add it. I'm not sure how closely the YAML CloudFormation syntax matches the JSON -- probably very closely. So it may just be a case of enhancing the first few lines of the main() function.

benbc avatar Jun 19 '17 07:06 benbc

You can use cfn-flip to achieve this end (a awslabs package written in python)

cat cloudformation.yaml | cfn-flip | ./cfviz | dot -Tsvg -oexample.svg

distributedlife avatar Jun 28 '17 04:06 distributedlife

Thanks @distributedlife, that's very helpful.

benbc avatar Jun 28 '17 08:06 benbc