🚀 DevOps
Terraform IaC Basics
Infrastructure as Code — define your servers, networks, DNS, and cloud resources in declarative configuration files instead of clicking through dashboards. Write what you want, run `terraform apply`, and Terraform creates it. Everything is version-controlled, reproducible, and reviewable in pull requests just like application code.
2
Minutes
6
Concepts
+45
XP
1
Core Concepts
- Providers: Plugins that talk to APIs — AWS, Cloudflare, Proxmox, Tailscale, etc. Each provider exposes resources you can manage
- Resources: The things you create — a DNS record, a VM, a firewall rule. Each resource has a type and configuration block
- State:
terraform.tfstatetracks what Terraform has created. It maps your config to real infrastructure. This is the source of truth — never edit it manually - Plan:
terraform planpreviews what will change before you touch anything. Shows creates, updates, and destroys. Always review the plan before applying - Modules: Reusable groups of resources. Package common patterns (e.g., "web server with DNS + firewall") and call them with different variables