Table of Contents
Preface
Part 1: Foundations of Terraform
1
Understanding Terraform Architecture
Understanding Terraform architecture
The plan
Configuration language
Modularity
Understanding Terraform state
State file
Partial resource management
Understanding how to build and consume modules
Module design
Consuming modules
Understanding how to use the CLI effectively
init
validate
workspace
plan
apply
destroy
Summary
2
Using HashiCorp Configuration Language
Resources and data sources
Resources
Data sources
Locals and types
Locals
Primitive types
Collection types
Complex objects
Inputs and outputs
Inputs
Outputs
Meta-arguments
Provider
Depends on
Lifecycle
Loops and iterations
For each
For expressions
Expressions
Conditional expressions
Splat ...
Get Mastering Terraform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.