gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 981 forks source link

Exclude block #3551

Open denis256 opened 6 days ago

denis256 commented 6 days ago

Description

Included changes:

https://github.com/gruntwork-io/terragrunt/issues/3134

TODOs

Read the Gruntwork contribution guidelines.

Release Notes (draft)

Added / Removed / Updated [X].

Added support for exclude block

exclude {
    if = <boolean expression>           # Boolean expression to determine exclusion.
    actions = ["<action>", ...]         # List of actions to exclude (e.g., "plan", "apply", "all", "all_except_output").
    exclude_dependencies = <boolean>    # Boolean to determine if dependencies should also be excluded.
}

Migration Guide