โ Terraform Associate Exam Practice learning pathTerraform Associate Exam Practice ยท Module 3 of 10
CLI workflow
init, plan, apply and destroy.
๐ Key ideas
- terraform init downloads providers and modules and sets up the backend.
- terraform plan shows proposed changes without applying them.
- terraform apply makes the changes (after approval unless -auto-approve).
- terraform destroy removes managed infrastructure.
- 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