DevOps Learning Hub · DevOps Learning Hub
D_devops.hubStart learning ↗
INFRASTRUCTURE AS CODE / MODULE 04

Terraform foundations

Learn the plan-and-apply workflow behind infrastructure as code.

INSTALL01

Check your CLI

Confirm the installed Terraform CLI version.

terraform version
INIT02

Initialize a project

Install providers and initialize the working directory.

terraform init
FORMAT03

Format configuration

Apply the standard Terraform formatting to your files.

terraform fmt -recursive
VALIDATE04

Check your config

Validate syntax and internal consistency after initialization.

terraform validate
PLAN05

Preview changes

Review planned actions before applying any infrastructure changes.

terraform plan
STATE06

Inspect state

List resources recorded in the state file. Protect state files as sensitive data.

terraform state list