AWS CloudFormation is an Infrastructure as Code (IaC) service that enables you to model and provision AWS infrastructure resources in a declarative way. It uses templates written in JSON or YAML format to describe the desired state of your infrastructure. CloudFormation then manages the provisioning and updating of these resources automatically.
Example Code:
Resources:
MyEC2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-12345678