Difference between revisions of "Terraform state mv"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
== Examples == | == Examples == | ||
− | * Move a resource into a module: | + | * Move a resource into a [[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 == |
Revision as of 09:00, 8 February 2022
Examples
- Move a resource into a module:
terraform state mv packet_device.worker module.worker.packet_device.worker
Related terms
- Block type called moved
See also
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
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: