This tool will help with the creation of AWS Cloudformation stacks by automatically validating the template and the stack names prior to creation. It will also monitor the creation of the stack and report on the completion status, and will also print the outputs of the stack. This removes the tedium of having to manually run describe-stacks in order to determine when the stack is finished being stood up.
In order to work with the AWS API, certain software requirements must be met in order for autostack to work, these are:
- AWS CLI (python)
- perl 5.010
Perl Modules:
- JSON
Autostack requires a cloudformation template, and a unique stack name to function.
autostack.pl --file /path/to/file --name mystack
To pass parameter inputs, or to specify custom stack create commands, autostack will support reading from a json file.
autostack.pl --file /path/to/file --name mystack -json /path/to/file
Create stack options can also be passed directly in from the command line, after ending normal option handling with "--".
autostack.pl --file /path/to/file --name mystack -- --disable-rollback
Located in the "cftemplates" folder are some example cloudformation infrastructure templates, which function out of the box.