Generates JSON config for AWS CloudFormation using a Ruby DSL. Manage CloudFormation stacks - create, update, diff.
Based on https://github.com/songkick/cloud_formatter
Clone the repository, then run:
gem build cloud_builder.gemspec
gem install cloud_builder-version.gem
$ stack --help
Usage:
stack [OPTIONS] STACK
Parameters:
STACK stack to build
Options:
-r, --region REGION AWS region to use (default: $EC2_REGION, or "us-east-1")
-v, --validate validate the stack file before doing anything else
-b, --bucket BUCKET upload template to BUCKET (default: $CLOUD_BUILDER_BUCKET, or nil)
-t, --diff-tool DIFF_TOOL tool to use for diff (default: $CLOUD_BUILDER_DIFF_TOOL)
-c, --create create the stack
-u, --update update the stack
-d, --diff do a diff between the existing template in BUCKET and the generated template
-e, --estimate estimate template cost
-h, --help print help
For most actions you will require an active AWS account, so make sure you export AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
to ENV
See stacks/example.rb for an example stack.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)--region
, --bucket
and --diff-tool
--upload
flag/action, if you specify a bucket the stack json is uploaded by default--help
--diff-tool
to specify a different tool to use for diffs