🧪 Experiments Updated
filter-flag updated with run support
The --filter flag is now supported on the run command (remember that you must use the filter-flag experiment to try this).
e.g.
# Filter by path with glob patterns
terragrunt run --all --filter 'prod/**' -- plan
# Filter by name
terragrunt run --all --filter 'app*' -- apply
# Exclude specific configurations
terragrunt run --all --filter '!./test/**' -- plan
# Combine filters with intersection (refinement)
terragrunt run --all --filter './prod/** | !name=legacy' -- apply
# Multiple filters with union
terragrunt run --all --filter 'app1' --filter 'app2' -- plan
For more information, see the documentation on Filtering Units.
If you give this feature a try, make sure to share your feedback on the Filter Flag RFC
What's Changed
- feat: Adding support for
--filterflag inrunby @yhakbar in #4981 - docs: Documenting support for
--filterin theruncommand by @yhakbar in #5015 - chore: fixes for periodically failing tests by @denis256 in #5011
Full Changelog: v0.91.4...v0.91.5