Use configuration to move resources | Terraform | HashiCorp Developer
Use the configuration-driven workflow to change Terraform resource IDs. Refactor configuration to move resources into modules using the `moved` block.