Persist refreshed state after infrastructure drift detection.

Section: Drift and Recovery

Apply refresh-only changes

bash
bash
terraform apply -refresh-only -auto-approve
Explanation

Persist refreshed state after infrastructure drift detection.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Drift and Recovery
Detect and record drift
Refresh state from real infrastructure without proposing config changes.
OpenIn sheetbashsame section
Import after state loss
Rebuild Terraform state associations after state loss or partial migration.
OpenIn sheetbashsame section
Enable TRACE logs
Turn on maximum logging detail for hard-to-diagnose issues.
OpenIn sheetbash1 tag match
Legacy 0.13 upgrade helper
Legacy helper command that updated provider source declarations in Terraform 0.13.
OpenIn sheetbash1 tag match
Inspect module resource
Inspect one resource nested inside a module.
OpenIn sheetbash1 tag match
Write debug log to file
Capture debug logs into a file for later analysis.
OpenIn sheetbash1 tag match