Terraform and Infrastructure as Code
$23.99
Buy on Amazon View on Apple BooksPrefer it in print? See every format on Amazon →
Price on Apple Books. Amazon’s price may differ.
- Published
Description
Terraform and Infrastructure as Code is a practical engineering guide to running infrastructure as code at scale. It starts from a single observation: writing Terraform is easy, and running Terraform across an organisation of any size is hard. The discipline is not in the syntax but in the module design, the state layout, the policy enforcement, and the operational workflows that keep a large codebase healthy. The book walks through the full discipline — why infrastructure as code matters and what it solves, Terraform fundamentals and the workflow, module design and composition, state management at scale, providers and provider patterns, workspaces, environments, and layouts, policy as code and guardrails, testing infrastructure code, CI/CD for infrastructure, drift detection and reconciliation, multi-cloud infrastructure as code, secrets and sensitive data, team workflows and collaboration, and the trends reshaping the field. It covers the failure modes that quietly wreck infrastructure codebases: a state file corrupted by two concurrent applies, a module change that silently breaks every environment, a provider upgrade that changes behaviour in a way no test catches, a secret stored in a variable that ends up in plaintext in state, a policy that blocks legitimate work because it was never tested, a drift introduced during an incident and never reconciled, a plan output that hides a destructive change because the diff was too large to review. Each is presented with the failure, the countermeasure, and the operational tradeoff.