Terraform 1 · Variables, targets and outputs

Apply a single resource

Limit the run to one resource and what it depends on.

terraform apply -target=aws_instance.web

Caution: Targeting is for exceptional situations. It can leave other resources out of sync.

Official Terraform 1 documentation

More variables, targets and outputs commands

All variables, targets and outputs commands · Terraform 1 cheatsheet

Was this page helpful?