github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/commands/state/addressing.html.md (about) 1 --- 2 layout: "commands-state" 3 page_title: "Command: state resource addressing" 4 sidebar_current: "docs-commands-state-address" 5 description: |- 6 The `terraform state` command is used for advanced state management. 7 --- 8 9 # Resource Addressing 10 11 The `terraform state` subcommands use 12 [standard address syntax](/docs/internals/resource-addressing.html) to refer 13 to individual resources, resource instances, and modules. This is the same 14 syntax used for the `-target` option to the `apply` and `plan` commands. 15 16 Most state commands allow referring to individual resource instances, whole 17 resources (which may have multiple instances if `count` or `for_each` is used), 18 or even whole modules. 19 20 For more information on the syntax, see [Resource Addressing](/docs/internals/resource-addressing.html).