Diagram
A process flow showing the Terraform execution order: terraform init initializes providers, terraform validate checks syntax, terraform plan generates a reviewable execution plan, and terraform apply provisions resources through Google Cloud APIs, with terraform destroy shown as the optional teardown path.
Plan-and-Apply Lifecycle with Infrastructure Manager and Cloud Build
The Terraform execution lifecycle turns declarative files into provisioned resources in a fixed order. Execution starts with terraform init to initialize providers, then terraform validate to check syntax, then terraform plan to generate a reviewable execution plan, then terraform apply to create or update resources through Google Cloud APIs, or terraform destroy to delete a deployment. The Terraform state file is the JSON mapping that records the last-known infrastructure, so Terraform creates what is in configuration but missing from state, updates what differs, and leaves what matches unchanged.
Domain 2 of 2
137 practice questions
Practice this DomainLast updated