Managing drift from manual changes in Terraform can be challenging, but there are different ways to handle it depending on the case. One option is to manually update the Terraform code to reflect the changes, which can be done by writing the missing code and pushing it, then applying it and letting the delta disappear. Another approach is to use a tool like Terraformer or Terraforming to reverse-terraform the new environment, creating valid Terraform code and a TFState file from scratch. Alternatively, specific parts of the new code can be imported using the Terraform import subcommand to ensure precision and control over what is added to the existing infrastructure repository. Ultimately, the recommended approach depends on the situation, with small changes handled automatically through reconciliation with the state file, while more complex cases require manual intervention or tool-assisted reverse-terraform.