Terraform
Terraform Apply
Appears inTerraform Associate
A command that applies the changes from the execution plan, creating, modifying, or destroying resources in the provider. It asks for interactive confirmation unless -auto-approve is used.
On the exam
In Terraform Associate: terraform apply executes what terraform plan shows. Standard flow: init → plan → apply. After apply, the state is updated. To destroy all resources: terraform destroy.
Related terms
- Terraform PlanA command that generates and displays an execution plan without applying any changes. It compares the desired configuration with the current state and shows which resources will be created, modified, or destroyed.
- Terraform StateA file (terraform.tfstate) that Terraform uses to map the real-world configuration in code to actual resources in the cloud. It's Terraform's source of truth about which resources it manages and their current status.