Terraform 1 · Variables, targets and outputs
Force a resource to be recreated
Destroy and recreate a resource. This replaces the old taint command.
terraform apply -replace=aws_instance.web
Caution: Recreating a resource can cause downtime and data loss.
Official Terraform 1 documentation
More variables, targets and outputs commands
- Set a variable
- Use a variable file
- Apply a single resource
- Show outputs
- Read one output as a plain value
- Open an expression console
All variables, targets and outputs commands · Terraform 1 cheatsheet