Content Deep Dive
What Does Terraform Refresh Command Do – Overview
Blog post from Spacelift
Post Details
Company
Date Published
Author
Jack Roper
Word Count
697
Language
English
Hacker News Points
-
Source URL
Summary
The `terraform refresh` command is used to update the Terraform state file with the current state of infrastructure resources after making manual changes. However, it's deprecated due to potential safety issues if misconfigured credentials are present. Instead, use the `--refresh-only` option with the `plan` and `apply` commands for versions v0.15.4 and above. This command is not typically needed independently as refreshes occur automatically during plan and apply stages.