Terraform Apply Fail

From UVOO Tech Wiki
Revision as of 15:40, 1 October 2021 by Busk (talk | contribs) (Created page with "# Partial failed terraform apply If terraform fails part way though and is left in inconsistent state even after you fix issues you might get resource already exists with th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Partial failed terraform apply

If terraform fails part way though and is left in inconsistent state even after you fix issues you might get resource already exists with that name even though created because didn't save in state file.

  • Manually find everything that got deployed, delete it, and re-run terraform apply.
  • Manually find everything that got deployed, and for each such resource, run terraform import 41.

ref: - https://github.com/hashicorp/terraform/issues/20718