2016-03-22 18:41:02 +01:00
|
|
|
---
|
|
|
|
layout: "commands-state"
|
|
|
|
page_title: "Command: state resource addressing"
|
2018-12-21 03:18:13 +01:00
|
|
|
sidebar_current: "docs-commands-state-address"
|
2016-03-22 18:41:02 +01:00
|
|
|
description: |-
|
|
|
|
The `terraform state` command is used for advanced state management.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Resource Addressing
|
|
|
|
|
|
|
|
The `terraform state` subcommands make heavy use of resource addressing
|
|
|
|
for targeting and filtering specific resources and modules within the state.
|
|
|
|
|
|
|
|
Resource addressing is a common feature of Terraform that is used in
|
|
|
|
multiple locations. For example, resource addressing syntax is also used for
|
|
|
|
the `-target` flag for apply and plan commands.
|
|
|
|
|
|
|
|
Because resource addressing is unified across Terraform, it is documented
|
|
|
|
in a single place rather than duplicating it in multiple locations. You
|
|
|
|
can find the [resource addressing documentation here](/docs/internals/resource-addressing.html).
|