supraj.dev
Terraform

Terraform drift

If someone changes a server by hand in the console, how does Terraform even notice?

28 s loop7 sentencesSilent, read alongScene: Islands
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. Drift means real infrastructure was changed outside Terraform, for example in the cloud console, so it no longer matches your configuration.
  2. By default, terraform plan first reads the real resources, then compares them with your configuration and proposes changes to make them match.
  3. To resolve drift, run terraform apply to set it back, or update your configuration to match the change so the next plan is clean.