Company
Date Published
April 26, 2023
Author
Jack Roper
Word count
697
Language
English
Hacker News points
None

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.