← Terraform614 / 640
hardterraform

Apply Terraform changes to a single specific resource, ignoring others

command

terraform apply -target=google_compute_instance.web

also accepted

terraform apply -targetterraform apply -target=google_compute_instance

Command breakdown

Part of the terraform — Terraform category.

terraformapply-target=google_compute_instance.web

Test your recall — not just your reading.

Practice with interactive quiz →