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

All variables, targets and outputs commands · Terraform 1 cheatsheet

Was this page helpful?