Difference between revisions of "Terraform state (command)"
Jump to navigation
Jump to search
m (Welcome moved page Terraform state to Terraform state (command)) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | + | https://www.terraform.io/docs/language/state/index.html | |
− | |||
+ | <code>[[terraform]] state</code> and <code>[[terraform state --help]]</code> | ||
+ | |||
+ | == Examples == | ||
* <code>[[terraform state list]]</code> List resources in the state | * <code>[[terraform state list]]</code> List resources in the state | ||
* <code>[[terraform state show]]</code> | * <code>[[terraform state show]]</code> | ||
Line 10: | Line 12: | ||
* <code>[[terraform state replace-provider]]</code> | * <code>[[terraform state replace-provider]]</code> | ||
* <code>[[terraform state rm]]</code> | * <code>[[terraform state rm]]</code> | ||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
− | * [[Terraform state files]] | + | * [[Terraform state files]]: <code>[[terraform.tfstate]]</code> |
== See also == | == See also == | ||
+ | * {{terraform state}} | ||
* {{tf files}} | * {{tf files}} | ||
* {{terraform cmd}} | * {{terraform cmd}} | ||
− | |||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 23:40, 25 February 2022
https://www.terraform.io/docs/language/state/index.html
terraform state
and terraform state --help
Examples[edit]
terraform state list
List resources in the stateterraform state show
terraform state mv
terraform state pull
terraform state push
terraform state replace-provider
terraform state rm
Related terms[edit]
See also[edit]
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: