terraform/website/docs/cli/state/taint.html.md
Nick Fagerlund 2c02233a16 website: Add new "glue"/overview pages for CLI and language docs
The new nav structure demanded a few new pages that give context about a feature
or workflow. In a few cases, they take text from an existing page.

Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2020-11-11 19:13:23 -08:00

1.2 KiB

layout page_title
docs Forcing Re-creation of Resources (Tainting) - Terraform CLI

Forcing Re-creation of Resources (Tainting)

When a resource declaration is modified, Terraform usually attempts to update the existing resource in place (although some changes can require destruction and re-creation, usually due to upstream API limitations).

In some cases, you might want a resource to be destroyed and re-created even when Terraform doesn't think it's necessary. This is usually for objects that aren't fully described by their resource arguments due to side-effects that happen during creation; for example, a virtual machine that configures itself with cloud-init on startup might no longer meet your needs if the cloud-init configuration changes.