digger.yml
that lists a subset of projects you want checked (e.g., only devel
or only prod
).
This is a workaround: there is no explicit per-project drift filter yet. You scope by pointing the workflow to a dedicated Digger config file that contains only the desired projects/blocks.
1) Create a dedicated Digger config for the scope
First, create a minimaldigger.yml
that lists only the projects you want to check for drift. This file is the same shape as your main config; it simply contains a subset.
Plain Terraform example (explicit projects list):
2) Reference that file from a drift workflow
Create a dedicated workflow that setsmode: drift-detection
and points to your file via digger-filename
:
3) Repeat per environment
Forprod
, pre
, demo
, etc., create corresponding files (e.g., digger-drift-prod.yml
) that list only those projects/blocks, and a matching workflow that uses the respective digger-filename
.
This approach limits drift runs to the intended subset while keeping your main digger.yml
unchanged.