FAQ

How does Drift Detection work?

Drift detection runs as a GitHub actions workflow / GitLab CI Pipeline at the root of your repository or within a subset (like a directory defining the infrastructure for a specific AWS account). It compares the contents of your Infrastructure as Code (IaC) code against the state of your infrastructure in your cloud environments (e.g. deployed in AWS). When it finds drift (like someone opening port 22 in the AWS console without making a corresponding change in IaC), it creates a PR/MR to remediate the drift by reverting deployed infrastructure to the designated configuration defined in IaC. You can review the impact of remediating the drift in a comment on the PR/MR, then either update the IaC to match the drift, or merge the PR/MR as is to re-apply the IaC specified configuration.

← All frequently asked questions

Supercharge Terragrunt for your Organization

Unlock Terragrunt’s full potential with Terragrunt Scale — purpose-built tooling that streamlines deploying and operating your infrastructure.

Automate your CI/CD

Pipelines is an out-of-the-box, best practices, secure CI/CD pipeline, built for Terragrunt, by the creators of Terragrunt.

Remediate infra drift

Terragrunt Drift Detection regularly compares your live cloud resources to your IaC and automatically opens pull requests to eliminate drift.

Keep your IaC Fresh

Terragrunt Patcher is a dependency management tool that keeps your OpenTofu/Terraform modules up to date, even through breaking changes.

Join the Terragrunt Newsletter!

Hear about the latest updates, features and innovations in Terragrunt.

Check out our other open source tools