Difference between revisions of "Terraform state mv"
Jump to navigation
Jump to search
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | * https://www.terraform.io/cli/commands/state/mv | ||
+ | == Examples == | ||
+ | * Move a resource into a [[Terraform modules|module]]: | ||
+ | terraform state mv packet_device.worker [[module.]]worker.packet_device.worker | ||
+ | |||
+ | == Related terms == | ||
+ | * [[Terraform blocks|Block]] type called <code>[[moved]]</code> ([[Terraform changelog|Dec 2021]]) | ||
+ | * <code>[[terraform state list]]</code> | ||
== See also == | == See also == | ||
− | * {{terraform | + | * {{terraform state}} |
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 10:01, 27 June 2023
Examples[edit]
- Move a resource into a module:
terraform state mv packet_device.worker module.worker.packet_device.worker
Related terms[edit]
- Block type called
moved
(Dec 2021) terraform state list
See also[edit]
Advertising: