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
- Set a variable
- Use a variable file
- Force a resource to be recreated
- Show outputs
- Read one output as a plain value
- Open an expression console
All variables, targets and outputs commands · Terraform 1 cheatsheet