zalando-stups / senza

Deploy immutable application stacks and create and execute AWS CloudFormation templates in a sane way

Home Page:https://pypi.python.org/pypi/stups-senza

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to not minify the Cloudformation json template

kenden opened this issue · comments

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.

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

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