โ† Terraform Associate Exam Practice learning path
Terraform Associate Exam Practice ยท Module 3 of 10

CLI workflow

init, plan, apply and destroy.

๐Ÿ“– Key ideas

  1. terraform init downloads providers and modules and sets up the backend.
  2. terraform plan shows proposed changes without applying them.
  3. terraform apply makes the changes (after approval unless -auto-approve).
  4. terraform destroy removes managed infrastructure.
  5. Other commands: fmt (format), validate (syntax check), show, output, console and providers.
๐Ÿ’ก Real-life example: Like a building project: get materials (init), review drawings (plan), build (apply), demolish (destroy).
terraform initPrepares the working directory
terraform planPreviews changes
terraform applyApplies changes
terraform fmtFormats code to standard style