Great write up here going over some cloudformation basics…
This article will go over a few practical examples of EC2 build out using CloudFormation. You should have some familiarity with CloudFormation, EC2, EBS, and VPCs. This article also uses YAML and you should be familiar with the syntax for it. The following pieces will be discussed: Creating EC2 instances
Source: EC2 CloudFormation Examples