zalando-stups / senza

Deploy immutable application stacks and create and execute AWS CloudFormation templates in a sane way
https://pypi.python.org/pypi/stups-senza
Other
96 stars 72 forks source link

Add option to not minify the Cloudformation json template #450

Open kenden opened 7 years ago

kenden commented 7 years ago

In the AWS console, when selecting a cloudformation stack created by Senza and looking at the template, it appears minified. I would be nice to be able to read it. Sometimes having a quick look at the template to check an option is helpful.

Could we have an option to senza create? Something like

senza create --json-not-minified myapp.yaml 1 0.1-SNAPSHOT

And some help for this option:

--json-not-minified        Do not minify the Cloudformation json template submitted to AWS. Let it readable.
hjacobs commented 7 years ago

Is copying the JSON and piping it through jq not an option?

kenden commented 7 years ago

It is, just a bit less lazy. After doing this enough times, we started wishing for a --json-not-minified option.