mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-21 11:01:23 -05:00
Several `terraform` subcommands include sub-sub-commands; with our old sidebar system, viewing those took you to an isolated "island" nav sidebar, away from the main docs. The new navigation will adopt all these pages, so we don't need to exile the reader to odd places.
21 lines
779 B
Markdown
21 lines
779 B
Markdown
---
|
|
layout: "docs"
|
|
page_title: "Command: state resource addressing"
|
|
sidebar_current: "docs-commands-state-address"
|
|
description: |-
|
|
The `terraform state` command is used for advanced state management.
|
|
---
|
|
|
|
# Resource Addressing
|
|
|
|
The `terraform state` subcommands use
|
|
[standard address syntax](/docs/internals/resource-addressing.html) to refer
|
|
to individual resources, resource instances, and modules. This is the same
|
|
syntax used for the `-target` option to the `apply` and `plan` commands.
|
|
|
|
Most state commands allow referring to individual resource instances, whole
|
|
resources (which may have multiple instances if `count` or `for_each` is used),
|
|
or even whole modules.
|
|
|
|
For more information on the syntax, see [Resource Addressing](/docs/internals/resource-addressing.html).
|