Skip to content

v2.2.0

Latest

Choose a tag to compare

@cloudposse-releaser cloudposse-releaser released this 31 Mar 22:57
7b5069f
fix: Terraform 1.5.7 compatibility for nullable variable validations @johncblandii (#86) Terraform 1.5.7 does not short-circuit `||` in `validation` blocks, so expressions like `length(null)` and `for ... in null` raise errors even when guarded by a null check. This wraps the right-hand side of each `||` in `try(..., false)` across all 4 validation blocks for `nat_gateway_public_subnet_indices` and `nat_gateway_public_subnet_names`. Zero behavior change on Terraform 1.6+.

Summary by CodeRabbit

  • Improvements
    • Enhanced validation logic for network gateway subnet configurations to more gracefully handle edge cases and prevent unnecessary planning errors.