Template commands¶
These commands work with template files on your computer. diff, fmt, merge and tree need no AWS credentials. pkg, bootstrap, build, forecast and module can call AWS, so they take -p (--profile) and -r (--region). See Common flags.
The output on these pages comes from real runs of cfnrain, unless a page says otherwise.
| Command | What it does |
|---|---|
fmt |
Formats templates. |
pkg |
Packages a template. |
diff |
Compares two template files. |
merge |
Merges two or more templates into one. |
tree |
Shows which parameters, resources and outputs depend on each other. |
build |
Makes starter templates from the CloudFormation resource schemas. |
bootstrap |
Creates the artifact bucket. |
forecast |
Looks for things that can make a deploy fail, such as a bucket name that already exists or an EC2 key pair that does not exist. Experimental. |
module |
Publishes and installs packages of modules with AWS CodeArtifact. Experimental. |