Drift Detection runs a Plan operation against all Dirspaces in a repository. If changes are found then a GitHub Issue in the repository is automatically created. Reconciliation can optionally be enabled.
Terrateam behavior can be configured via a
config.yml. This file is located in
a directory named
.terrateam at the root of your Terraform repository:
See Configuration documentation for details.
See Configuration Reference documentation for details.
|Specified whether drift detection is enabled. If set to
false, drift detection and reconciliation will not run. Default is
|The interval to run drift detection and reconciliation:
|Specified whether reconciliation is enabled. Default is
Drift Detection operations are equivalent to Plan operations. Existing Workflows and Hooks run for all Drift Detection operations. The following environment variable is defined for Plan and Apply operations initiated by Drift Detection:
schedule key can be set to one of the following values:
There is no default and this key is required.
reconcile key will enable or disable reconciliation. Drift Detection automatically runs
a Plan operation against all of a repositories Dirspaces. If changes are found and reconciliation
is enabled then an Apply operation will automatically run against the Terraform Plan file that
If changes are found during Drift Detection initiated operations then a GitHub Issue can be created with the following configuration:
Duplicate issues for identical changes will not be created.
It’s easy to create a Slack notification using the official GitHub integration for Slack.
- Install the app against your desired Slack workspace and channel
- Use the
/githubcommand to subscribe to your Terraform repository:
To create a custom notification or action when Drift Detection initiated operations find changes, one could implement a custom hook using the Terrateam configuration file.