Difference between revisions of "Terraform state mv"

From wikieduonline
Jump to navigation Jump to search
 
(14 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 state}}
 
* {{terraform state}}
* {{terraform cmd}}
 
  
 
[[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]

See also[edit]

Advertising: