</>DevOps101
LearnTemplatesToolsPricingBlog
Back to Lessons
Intermediate 25 min

Infrastructure as Code

Terraform, Pulumi, state management, modules - manage cloud infrastructure like code.

ClickOps is when you manually provision servers in a web console. IaC is when your coworkers can review your infrastructure changes in a pull request.

What you'll learn

Terraform basicsState managementModulesRemote backends

Terraform uses HCL (HashiCorp Configuration Language) to declare infrastructure. Every resource is tracked in a state file - the source of truth for what exists in your cloud.

Store state remotely (S3 + DynamoDB, Terraform Cloud, or GCS). Never commit state files to git. They contain secrets and drift causes production outages.