Terraform 1 · State

Forget a resource

Stop tracking a resource without destroying it.

terraform state rm aws_instance.web

Caution: Terraform will no longer manage the resource, and a later apply may try to create a duplicate.

Official Terraform 1 documentation

More state commands

All state commands · Terraform 1 cheatsheet

Was this page helpful?