Skip to content

Filters File

If you want to ensure that certain units are always included or excluded, you can use a filters file.

Filters files are simple text files that contain filter expressions delimited by newlines. Empty lines and lines starting with # are ignored.

filters.txt
./subtree/**
!./subtree/dependency/**
Terminal window
terragrunt run --all --filters-file filters.txt -- plan

Running Terragrunt like this is equivalent to running it with the following flags:

Terminal window
terragrunt run --all --filter './subtree/**' --filter '!./subtree/dependency/**' -- plan