Chapter 12: Terraform Introduction
Chala mitrano, aaj aapan Terraform — Infrastructure as Code. Shop cha blueprint pahile, bricks nantar. Desired state vs clickops, providers, resources, state (local lab + remote warning), minimal resource (security group + tags / tiny EC2), init / plan / apply / destroy, variables aani outputs. VPC full chapter AWS madhe — ithe rebuild nahi. Ghabru naka: chota lab, nantar destroy.
What you will learn in this chapter
- Desired state versus clickops
- Providers, resources and state warnings
- Minimal AWS resource without rebuilding VPC
- init, plan, apply, destroy workflow
- Variables, outputs and lab cleanup
Concepts in this chapter
- 12.1Why Terraform — blueprint before cloud clicks
- 12.2Providers, resources and state
- 12.3State — local for learning, respect remote later
- 12.4Minimal resource — security group lab (preferred small)
- 12.5Workflow — init, plan, apply, destroy
- 12.6Variables, tfvars and outputs
- 12.7Plan reading habits
- 12.8Terraform vs Ansible (clear boundary)
- 12.9Troubleshooting table
- 12.10Lab safety checklist (non-negotiable)
- 12.11What "minimal" means in this course
- 12.12Lab — apply a tiny resource, then destroy
Review and practice
The chapter recap is at the end of the last concept page.