cl9200 / tfmv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Local State Move

Syntax

./tfmv [include_prefix] [target_state_path] [new_resource_prefix] [plan]
  • include_prefix: The prefix of the resources to be moved in the local state file.
  • target_state_path: The path for the target local state file.
  • new_resource_prefix: (Optional) New prefix for the moved resources.
  • plan: (Optional) If specified, outputs the planned commands without executing.

Example

./tfmv module.old target/terraform.tfstate module.new plan

About


Languages

Language:Shell 100.0%