Check a template for basic syntax and structural validity.
Section: Stacks
Validate a template
bash
bash
aws cloudformation validate-template --template-body file://template.yamlExplanation
Good preflight check before create or update.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Stacks
Update a stack
Update an existing stack with a new template or parameters.
Deploy a stack with package-style semantics
Create or update a stack using `deploy`.