1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [drift](<https://delaparra-services.nl/knowledge-hub/drift>)

  

Category: Terraform 

# drift

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is drift?

 

drift: When real infrastructure no longer matches state — someone changed it in the console. A plan reveals drift as proposed changes. Drift is the difference between what Terraform thinks your infrastructure looks like and what actually exists. It happens when someone changes a resource by hand, for example in the cloud console during an incident.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about drift

  

### How is drift used in practice?

 

The next ` terraform plan ` shows those manual changes as differences. If you apply without thinking, Terraform will undo the manual fix, which may bring back the problem it solved.

    

### What should you keep in mind with drift?

 

Run ` terraform plan -refresh-only ` to see drift without proposing changes. Then decide whether to copy the manual change into your code, or let Terraform restore the defined state. Prevent drift by limiting who can change production by hand, and by running plans regularly in CI to catch it early. Infrastructure as code only works as well as the habit of changing things through code.

    

### What does an example of drift look like?

 

```
terraform plan -refresh-only
```

 

## At a glance

   CategoryTerraform Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Terraform terms

 

- [data source](<https://delaparra-services.nl/knowledge-hub/data-source>) 
- [depends\_on](<https://delaparra-services.nl/knowledge-hub/depends-on-terraform>) 
- [destroy](<https://delaparra-services.nl/knowledge-hub/destroy>) 
- [expression](<https://delaparra-services.nl/knowledge-hub/expression>) 
- [fmt](<https://delaparra-services.nl/knowledge-hub/fmt>) 
- [for expression](<https://delaparra-services.nl/knowledge-hub/for-expression>)

 

[All terms starting with D](<https://delaparra-services.nl/knowledge-hub#letter-d>)

 

## Skills

 

- ### Terraform safe workflow

 

Use when running or changing Terraform (or OpenTofu) - init, fmt, validate, plan, apply, destroy, import, state mv/rm, refresh, workspaces, remote backends, state locking, drift, taint/-replace. Enforces a plan-review-apply workflow and protects state.

 [View skill](<https://delaparra-services.nl/skills/terraform-safe-workflow>) [Download zip](<https://delaparra-services.nl/skills/terraform-safe-workflow/download>) 
- ### Terraform Module Library

 

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

 [View skill](<https://delaparra-services.nl/skills/terraform-module-library>) [Download zip](<https://delaparra-services.nl/skills/terraform-module-library/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/drift/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/drift)
