YAML is a file format for representing data. YAML follows key value pair to define it structure
key: <value>
Value can be of different types
text: this is generally surrounded with single or double quotes movie: "retro" or movie: 'retro' or movie: retro
numer: This is any number runtime: 130
boolean: This has two values true or false or yes or notheare: no
list/array: this has values of any type in []actors: ['surya', 'pooja']
“`yaml
actors:</li>
<li>surya</li>
<li>pooja
“`
map/dictionary/object: this generally represents a complex type which requires more key value pairs to describe. This is surronded with {}
“`yaml
address:
flatno: 601-A
building: nilgiri</li>
</ul>
“`
* Example
Template: This uses a json or a yaml file in a format defined by aws Format
Stack: When we want to create infra, we create a cloudformation stack, where we pass the template. By default stack creates everything or nothing. stacks can be updated to recreate/modify the infrastructure created.