CloudFormation
AWS CloudFormation is an IaC service provided by Amazon to help provision a required infrastructure. In CloudFormation, we create a template that describes all the AWS resources we need (such as Amazon EC2 instances, a security group, and a key pair), and CloudFormation will create those resources for us and configure as per the instructions provided in the template.
CloudFormation helps us to simplify our resource management, which can be easily repeated, and changes can be tracked and versioned.
Let’s try understanding the concepts related to CloudFormation.
Template
In order to create resources in an AWS environment, you need to define them in a descriptive document, which is known as a template.
A CloudFormation template is a JSON/YAML-formatted text document, which you can save with a .json
, .yaml
, .template
, or .txt
extension. These text files are used to define the different resources and configurations you need to create them in your environment...