Difference between revisions of "Terraform state mv"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
== Examples ==
 
== Examples ==
* Move a resource into a module:
+
* Move a resource into a [[Terraform modules|module]]:
 
  terraform state mv packet_device.worker [[module.]]worker.packet_device.worker
 
  terraform state mv packet_device.worker [[module.]]worker.packet_device.worker
 
  
 
== Related terms ==
 
== Related terms ==
* [[Block]] type called moved
+
* [[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: