github gruntwork-io/terragrunt v0.69.6

latest releases: v0.71.2-alpha2024122002, v0.71.2-alpha2024122001, v0.71.1...
19 days ago

Updated CLI args, config attributes and blocks

  • errors

New Feature: errors configuration block

This release introduces an improved configuration block for managing errors, enhancing the flexibility of retry and ignore mechanisms. These new features provide fine-grained control over error handling, ensuring a smoother and more robust execution flow.

Example

errors {
    # Retry block for transient errors
    retry "retry_network" {
        retryable_errors = [".*Error: network timeout.*"]
        max_attempts = 3
        sleep_interval_sec = 5
    }

    # Ignore block for non-critical errors
    ignore "ignore_warnings" {
        ignorable_errors = [
            ".*Warning: non-critical issue.*"
        ]
        message = "Ignoring non-critical warnings"
    }
}

Demo

Ignore error:

ignore-error

Retry error:

retry-on-error

What's Changed

  • Added errors block

Related links

Full Changelog: v0.69.5...v0.69.6

Don't miss a new terragrunt release

NewReleases is sending notifications on new releases.