Pipelines now validates dependency removals

Pipelines can now fail the run and block merge of your pull/merge request when it detects that a deleted Terragrunt unit (or a file read by a unit) is still referenced elsewhere in the DAG.

If any unit still references a deleted path, plans fail with a comment listing all offending references. (Applies on your deploy branch will still continue, but a warning will be logged.)

This is an opt-in feature. To enable it, set the PIPELINES_FEATURE_VALIDATE_DAG_ON_DELETE flag to true in the env block of repository in your .gruntwork/ HCL config:

repository {
  env {
    PIPELINES_FEATURE_VALIDATE_DAG_ON_DELETE = "true"
  }
}

Validation of mark_as_read entries requires Terragrunt newer than v0.91.3. Older versions will only validate dependencies. See the feature flag reference for full details. This functionality is available as of the GitHub v4.16.0/GitLab v2.12.0 Pipelines releases.