2.
Infrastructure as Code (IaC)
Definition:
Infrastructure as Code (IaC) is managing and provisioning infrastructure (servers,
databases, networks) using machine-readable definition files, instead of manual processes.
Why it’s important:
● Reduces human error.
● Easily recreates the infrastructure (disaster recovery becomes easy).
● Allows version control of infrastructure just like application code.
Practical Example:
● Suppose you want to create an AWS EC2 server using Terraform.
You write a .tf file like:
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
}
●
● Running this file will automatically provision a server on AWS without manual
clicking.
Popular IaC Tools:
● Terraform
● AWS CloudFormation
● Pulumi
● Ansible (for configuration management)
●