github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/cli/state/index.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Manipulating State - Terraform CLI"
     4  description: "State data tracks which real-world object corresponds to each resource. Inspect state, move or import resources, and more."
     5  ---
     6  
     7  # Manipulating Terraform State
     8  
     9  > **Hands-on:** Try the [Manage Resources in Terraform State](https://learn.hashicorp.com/tutorials/terraform/state-cli?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn.
    10  
    11  Terraform uses [state data](/docs/language/state/index.html) to remember which
    12  real-world object corresponds to each resource in the configuration;
    13  this allows it to modify an existing object when its resource declaration
    14  changes.
    15  
    16  Terraform updates state automatically during plans and applies. However, it's
    17  sometimes necessary to make deliberate adjustments to Terraform's state data,
    18  usually to compensate for changes to the configuration or the real managed
    19  infrastructure.
    20  
    21  Terraform CLI supports several workflows for interacting with state:
    22  
    23  - [Inspecting State](/docs/cli/state/inspect.html)
    24  - [Forcing Re-creation (Tainting)](/docs/cli/state/taint.html)
    25  - [Moving Resources](/docs/cli/state/move.html)
    26  - Importing Pre-existing Resources (documented in the
    27    [Importing Infrastructure](/docs/cli/import/index.html) section)
    28  - [Disaster Recovery](/docs/cli/state/recover.html)
    29  
    30  ~> **Important:** Modifying state data outside a normal plan or apply can cause
    31  Terraform to lose track of managed resources, which might waste money, annoy
    32  your colleagues, or even compromise the security of your operations. Make sure
    33  to keep backups of your state data when modifying state out-of-band.