Chapter One

Foundations

What Infrastructure as Code buys you, the idea Terraform rests on, and the daily loop of init, plan, and apply — plus where Terraform sits among the other tools it gets confused with.

7 topics

Terraform is a small idea surrounded by a large vocabulary. The idea is that you describe the infrastructure you want in text, and a tool makes reality match — creating what is missing, changing what drifted, and remembering what it built. Everything else is detail in service of that.

This chapter lays the groundwork. What Infrastructure as Code actually solves and why declarative beats scripting, where Terraform fits next to tools like Ansible and CloudFormation, how to install it, what a provider is, the init/plan/apply loop you will run thousands of times, and the shape of the HCL language. The rest of the course assumes these seven pages.

Topics in This Chapter