Preface
1.WhyTerraform
The Rise of DevOps
What Is Infrastructure as Code
Ad Hoc Scripts
Configuration Management Tools
Server Templating Tools
Orchestrat:ion Tools
Provisioning Tools
The Benefits of lnfrastructure as Code
HoW Terraform Works
How Terraform Compares to Other IaC Tools
Configuration Management Versus Provisioning
Mutable Infrastructure Versus Immutable Infrastructure
Procedural Language Versus Declarative Language
Master Versus Masterless
Agent Versus Agentless
Large Community Versus Small Community
Mature Versus Cutting Edge
Using Multiple Tools Together
Conclusion
2.GeRingStartedwithTerraform
Setting Up Your AWS Account
Install Terraform
Deploy a Single Server
Deploy a Single Web Server
Deploy a Configurable Wleb Server
Deploying a Cluster of Web Servers
Deploying a Load Balancer
Cleanup
Conclusion
3.HowtoManageTerraform State
what Is Terraform State
Shared Storage for State Files
Limitations with Terraform's Backends
Isolating State Files
Isolation via Workspaces
Isolation via File Layout
The terraform_remote__state Data Source
Conclusion
4.How to Create Reusable Infrastructure with Terraform Modules
Module Basics
Module Inputs
Module Locals
Module Outputs
Module Gotchas
File Paths
Inline Blocks
Module Versioning
Conclusion