cfn-tool — a cloudformation template processing and stack deployment tool.
sudo npm install -g 'daggerml/cfn-tool#5.7.9'# Add the following to your `~/.bashrc` to enable bash completion:
complete -o default -C $(which cfn-tool-completer) cfn-toolExpand macros in template.yml and print resulting YAML to stdout:
cfn-tool transform template.ymlExpand macros in my-template.yml and nested templates, lint and validate
templates, upload packages and templates to S3, and deploy my-template.yml
to my-stack:
cfn-tool deploy template.yml my-stackUpdate a parameter of an existing stack, preserving previous values of all existing parameters not specified for update:
cfn-tool update --parameters "Foo=bar Baz=baf" my-stackSimple macro example:
cat <<EOT |cfn-tool transform /dev/stdin
Foo: !Shell uuidgen -t
EOTFoo: 53480aea-8c46-11eb-a4b0-61c2b0470324Note: There are many macro usage examples in the unit tests YAML file.
See the manual pages for complete usage and options info:
And the built-in macros reference manual page: