While using terraform to deploy a fairly large infrastructure in AWS, our remote tfstate
got corrupted and was deleted.
From the documentation, I gather that terraform refresh
should query AWS to get the real state of the infrastructure and update the tfstate accordigly, but that does not happen: my tfstate is untouched and plan + apply give a lot of Already existing
errors.
What does terraform refresh
really do?
0 Replies