Cloud Platforms / Terraform
Configuration Language
A closer look at Configuration Language.
Photo by chansu shin on Unsplash
HCL structure in Terraform
HashiCorp Configuration Language is how Terraform files declare providers, resources, variables, and outputs. This page walks through blocks and expressions, meta-arguments, dependency graphs, and sensible file layout—with Google Cloud examples throughout.
Formatting and validating Terraform files
Consistent HCL and early validation catch mistakes before plan or apply. This page covers terraform fmt and validate, variable and lifecycle checks, TFLint, pre-commit hooks, and a minimal CI gate—with a pointer to terraform test for module regressions.
Terraform modules
Modules bundle resources into reusable units with inputs and outputs. This page covers root versus child modules, calling modules from local paths, git, and the Registry, versioning with terraform-google-modules, and refactoring with moved blocks.