stelligent / mu

A full-stack DevOps on AWS framework
https://getmu.io
MIT License
973 stars 135 forks source link

Use goformation for extending CFN #165

Open cplee opened 7 years ago

cplee commented 7 years ago

https://github.com/awslabs/goformation

cplee commented 7 years ago

Will hold on this until they resolve issues with short form intrinsic functions:

Warning: YAML short form intrinsic functions (e.g. !Sub)

While this library supports both JSON and YAML AWS CloudFormation templates, it cannot handle short form intrinsic functions in YAML templates (e.g. !Sub).

We will be adding support soon, however we need to patch Go's YAML library as it doesn't currently support tags.

If you use a short form intrinsic function today, you'll either get the unresolved value (if the recieving field is a string field), or the template will fail to parse (if it's recieving field is a non-string field).

neekolas commented 6 years ago

This is fixed btw

cplee commented 6 years ago

@neekolas right on, thanks!

A challenge I have though is I need to read the CloudFormation template and then write it back out...with the intrinsic functions preserved, not evaluated. Any thoughts on this?