What Does Terraform Refresh Command Do – Overview
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.
Company
Spacelift
Date published
April 26, 2023
Author(s)
Jack Roper
Word count
697
Language
English
Hacker News points
None found.