For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remediation

Definition

The remediation of a drift is the action of bringing back the deployed infrastructure and the code used to deploy it to the same state.

Types of remediation

When a drift happens, you have two ways to remediate it:

1. Override the infrastructure

This consists of redeploying the code that describes the infrastructure because it is the source of truth, and any changes happening outside the code should be reverted.

You have two methods to implement this type of remediation:

I. Automatic

In the drift detection workflow that you create, you can add Terraform apply as a task. This means whenever the workflow executes, it will always redeploy the current code when any change is detected.

To create a drift detection scheduled workflow, configure the cron via the settings (gear icon next to the workflow name)

II. Manual

In this case, you manually inspect the output of the drift detection and manually redeploy the infrastructure, either by triggering the deployment pipeline or doing a Terraform apply from one action.

2. Bring changes to the code

In this case, you add the changes that have been applied to provisioned infrastructure to the code.

This is useful and required in situations where the changes are legitimate. A common example is during a security incident and as an emergency response; users make the change on the cloud provider because it is quicker, especially if the pipeline to deploy with Terraform takes time.

Last updated