There are multiple ways to create a template. We will learn YAML based authoring of templates in this chapter. You can author template in JSON format as well. I, personally, like the YAML based format because it is easier to work with. The JSON based format has a lot more braces to deal with; but if you have an editor that can format JSON syntax for you, this format may be easy as well. Another way to create a template is using the designer. On the AWS Console, you can make use of the designer to create a template by just dragging the available resources from the resource pane and dropping them on the canvas. The good thing about the designer is that it now supports both formats of text based authoring.
You see that there are different sections in the template, out of which Resources is the only mandatory section. Though you can have those sections...