Infrastructure as Code: CloudFormation Basics
AWS CloudFormation is a service that helps you model and set up AWS resources using Infrastructure as Code (IaC). You create templates (JSON or YAML) that describe your AWS resources, and CloudFormation provisions and manages those resources for you.
What is Infrastructure as Code?
Infrastructure as Code (IaC) is the practice of managing and provisioning infrastructure through machine-readable definition files, rather than through manual processes. CloudFormation enables IaC for AWS resources.
CloudFormation Templates
CloudFormation templates are JSON or YAML files that describe your AWS infrastructure. Templates include sections like AWSTemplateFormatVersion, Description, Parameters, Resources, and Outputs. Resources are the core of templates - they define what AWS resources to create.
CloudFormation Stacks
A CloudFormation stack is a collection of AWS resources created from a template. When you create a stack, CloudFormation provisions all resources defined in the template. You can update or delete stacks, and CloudFormation manages dependencies and rollbacks automatically.
