The following code block helps us to understand the basic AWS CFT structure in JSON and YAML format. For a basic AWS CloudFormation template structure in JSON and YAML, you can refer to https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html:
- The JSON structure: The JSON structure is as follows:
{
"AWSTemplateFormatVersion" : "version date",
"Description" : "JSON string",
"Metadata" : {
template metadata
},
"Parameters" : { set of parameters
},
"Mappings" : { set of mappings
},
"Conditions" : {
set of conditions
},
"Transform" : { set of transforms
},
"Resources" : { set of resources
},
"Outputs" : {
set of outputs
}
}
- The YAML structure: The YAML structure is as follows:
---
AWSTemplateFormatVersion: "version date"
Description...