What is the primary effect of running terraform init in a new Terraform project directory?
Think about what setup steps Terraform needs before managing infrastructure.
terraform init sets up the working directory by initializing the backend and downloading required provider plugins. It does not apply or plan changes.
After running terraform plan, what does the output primarily show?
Consider what you want to see before making changes.
terraform plan shows a preview of changes Terraform will perform, helping users review before applying.
Which Terraform CLI command applies the planned infrastructure changes to the cloud provider?
Think about which command actually makes changes.
terraform apply executes the changes to create, update, or delete resources as planned.
Which Terraform CLI command helps check if your configuration files are syntactically valid and can catch errors before applying?
Think about a command that checks correctness without making changes.
terraform validate checks the syntax and internal consistency of configuration files without contacting providers or making changes.
What is the result of running terraform destroy in a Terraform-managed infrastructure?
Consider what 'destroy' means in Terraform context.
terraform destroy removes all resources tracked in the current Terraform state, effectively deleting the infrastructure.