This tool allows you to clone a CloudFormation stack.
Grab the latest binary and you should be good to go.
If you're on OSX, you can install with homebrew:
brew tap intuit/cfn-clone
brew install cfn-clone
- aws cli installed and in your PATH
By default, cfn-clone will use the same template and parameters as the existing stack
cfn-clone -s source-stack-name -n new-stack-name
You have the ability to override parameters for the new stack.
cfn-clone -s source-stack-name -n new-stack-name -a FOO=BAR
You have the ability to override the template for the new stack.
cfn-clone -s source-stack-name -n new-stack-name -t ./new_template.json
You can use the normal aws cli environment variables for controlling credentials, etc. When cfn-clone invokes the aws cli, these will be made available.
Examples:
AWS_DEFAULT_PROFILE
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SECURITY_TOKEN
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
See LICENSE
for details