--filter
Filter configurations using a flexible query language
Attribute-Based Filtering
Match stacks by their configuration attributes:
# Filter by nameterragrunt stack generate --filter 'prod | type=stack'
# Filter by typeterragrunt stack generate --filter 'type=stack'
# Filter by pathterragrunt stack generate --filter './envs/prod/** | type=stack'Negation
Exclude paths using the ! prefix:
# Exclude by pathterragrunt stack generate --filter '!./prod/** | type=stack'Union (Multiple Filters)
Specify multiple --filter flags to combine results using OR logic:
# Generate the dev and prod stacksterragrunt stack generate --filter 'dev | type=stack' --filter 'prod | type=stack' Type: list(string)