File tree Expand file tree Collapse file tree
modules/alb-route53-alias Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,18 +18,12 @@ variable "alias_weighted_routing" {
1818 default = null
1919
2020 validation {
21- condition = (
22- var. alias_weighted_routing == null ||
23- var. alias_weighted_routing . weight >= 0
24- )
21+ condition = try (var. alias_weighted_routing . weight >= 0 , true )
2522 error_message = " alias_weighted_routing.weight must be greater than or equal to 0."
2623 }
2724
2825 validation {
29- condition = (
30- var. alias_weighted_routing == null ||
31- trimspace (var. alias_weighted_routing . set_identifier ) != " "
32- )
26+ condition = try (trimspace (var. alias_weighted_routing . set_identifier ) != " " , true )
3327 error_message = " alias_weighted_routing.set_identifier must not be empty."
3428 }
3529}
Original file line number Diff line number Diff line change @@ -31,18 +31,12 @@ variable "alias_weighted_routing" {
3131 default = null
3232
3333 validation {
34- condition = (
35- var. alias_weighted_routing == null ||
36- var. alias_weighted_routing . weight >= 0
37- )
34+ condition = try (var. alias_weighted_routing . weight >= 0 , true )
3835 error_message = " alias_weighted_routing.weight must be greater than or equal to 0."
3936 }
4037
4138 validation {
42- condition = (
43- var. alias_weighted_routing == null ||
44- trimspace (var. alias_weighted_routing . set_identifier ) != " "
45- )
39+ condition = try (trimspace (var. alias_weighted_routing . set_identifier ) != " " , true )
4640 error_message = " alias_weighted_routing.set_identifier must not be empty."
4741 }
4842}
You can’t perform that action at this time.
0 commit comments