2 AWS CloudFormation
This chapter covers:
- Introducing AWS CloudFormation
- Identifying the major sections of a CloudFormation template, and how they are used.
- Understanding how to build and manage templates using tools provided by AWS and others, including Console, CloudFormation Designer, and AWS Command Line.
- Creating, updating and deleting CloudFormation stacks using the Console the Command Line.
2.1 Introduction
AWS CloudFormation is the AWS-specific implementation of Infrastructure as Code (IaC), as we defined it in chapter 1. CloudFormation automates the deployment of resources on AWS.
With CloudFormation, you specify the details of the infrastructure you wish to deploy by creating JSON or YAML files, which are called templates. The templates are used to define all aspects of your environment, including computing, database, storage and networking, as well as Identity and Access Management (IAM) and Security, and many other AWS products and services.
When you build these templates, you’ll use a CloudFormation-specific structure (often called template anatomy), which we will describe in detail in this chapter. We’ll provide the opportunity for you to try out a variety of templates in action as we work through examples in this book.