refresh

Terraform asking each provider what the resources recorded in state really look like now, before it plans.

In more detail

Plan, apply and destroy all refresh first, so they compare against reality rather than Terraform's memory. Refreshing is how drift is detected. To only update state from reality without proposing changes, use a refresh-only plan.

Related terms

Taught in

References

Certification courses