I've got a set of YAML
AWS Cloud Formation Templates that I've recently converted from JSON
.
When using JSON
I was able to load these templates and transform them using jinja
to generate some markdown documentation from them. I'm attempting to do the same with YAML
in python.
I'm using the shorthand function syntax in the cloudformation templates which uses the YAML
Tags. eg
Properties:
MinSize: !Ref ClusterSize
MaxSize: !Ref ClusterSize
When attempting to load these with the ruamel.yaml
package the Constructor fails because it is unable to handle the Tags, because it has no knowledge about them.
Is there a way I can work around this so that I'm able to load the YAML
document so that I can retrieve/query the Outputs and Resources?