hardterraform
Move a resource to a different address in the Terraform state file without recreating it
command
terraform state mv OLD_RESOURCE_ADDRESS NEW_RESOURCE_ADDRESSalso accepted
terraform state mvterraform state mv OLD_RESOURCE_ADDRESScommand
terraform state mv OLD_RESOURCE_ADDRESS NEW_RESOURCE_ADDRESSalso accepted
terraform state mvterraform state mv OLD_RESOURCE_ADDRESSPart of the terraform — Terraform category.
Test your recall — not just your reading.
Practice with interactive quiz →