AWS CloudFormation:
It is a template used to CRUD infrastructure in AWS environment. It has template format which is described below.
AWSTemplateFormatVersion: "version date" (section (optional) identifies the capabilities of the template. The latest template format version is 2010-09-09
and is currently the only valid value.)
JSON way to represent:
"AWSTemplateFormatVersion" : "2010-09-09"
YAML way to represent:
AWSTemplateFormatVersion: "2010-09-09"
Description: The Description
section (optional) enables you to include comments about your template. [ 0 and 1024 bytes in length]
eg: JSON way
"Description" : "Here are some details about the template."
YAML way
Description: >
Here are some details about the template.
Metadata:
Parameters:
Mappings:
Conditions:
Transform:
Resources: (mandatory field)
Outputs:
Take Away:
1)Resources is mandatory field.
2)If we have both Description and AWSTemplateFormatVersion then its mandatory for the description field to follow AWSTemplateFormatVersion . Important restriction