terraform refresh command reference | Terraform | HashiCorp Developer

The `terraform refresh` command reads the current settings from all managed remote objects and updates the Terraform state to match.