Introduction
In this chapter, we present recipes for using AWS CloudFormation to create, update, and delete a collection of related AWS resources. We use CloudFormation templates to define AWS resources, and any other dependencies and parameters that are required to run a given specific application. A template is essentially a JavaScript Object Notation (JSON) file. Using AWS CloudFormation, you can implement version control for your infrastructure and define new templates, or use existing ones, to create a stack (a running instance of your template). If the stack creation process fails, then the entire process gets rolled back.
Note
AWS CloudFormation is provided as a free service, you need to only pay for the AWS resources created.