terraform state mv command reference | Terraform | HashiCorp Developer
The `terraform state mv` command changes bindings in Terraform state so that existing remote objects bind to new resource instances.