The terraform refresh-only command is intended to detect state file drift. This command synchronizes the state file with the actual infrastructure, updating the state to reflect any changes that have occurred outside of Terraform.
From terraform plan -refresh-only:
"Use this to detectdrift, i.e., changes made outside of Terraform."
It compares actual infrastructure to what's recorded in the state file.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit