Process Flow - Template structure (JSON/YAML)
Start Template
Version
Declare Parameters
Define Resources
Set Outputs
End Template
This flow shows the main parts of an AWS CloudFormation template from start to finish.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {},
"Resources": {},
"Outputs": {}
}| Step | Section | Action | Details | Result |
|---|---|---|---|---|
| 1 | Start Template | Begin parsing | Recognize template start | Template parsing started |
| 2 | Version | Read AWSTemplateFormatVersion | Version set to 2010-09-09 | Version recorded |
| 3 | Parameters | Check for parameters | None defined here | No parameters to process |
| 4 | Resources | Check for resources | None defined here | No resources to create |
| 5 | Outputs | Check for outputs | None defined here | No outputs to return |
| 6 | End Template | Finish parsing | Template fully parsed | Template ready for deployment |
| Variable | Start | After Version | After Parameters | After Resources | After Outputs | Final |
|---|---|---|---|---|---|---|
| AWSTemplateFormatVersion | undefined | 2010-09-09 | 2010-09-09 | 2010-09-09 | 2010-09-09 | 2010-09-09 |
| Parameters | undefined | undefined | {} | {} | {} | {} |
| Resources | undefined | undefined | undefined | {} | {} | {} |
| Outputs | undefined | undefined | undefined | undefined | {} | {} |
AWS CloudFormation template structure: - Start with AWSTemplateFormatVersion - Define Parameters (optional inputs) - Define Resources (AWS services to create) - Define Outputs (optional results) Each section is a JSON/YAML key Templates must be valid JSON or YAML