Skip to content

Commit 3fa7a5e

Browse files
Validation change for variables in the ecs cluster (#8)
Co-authored-by: aarti.joshi <aarti.joshi@nttdata.com>
1 parent 284ee1c commit 3fa7a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ variable "configuration" {
9595
default = null
9696

9797
validation {
98-
condition = var.configuration == null || var.configuration.execute_command_configuration == null || contains(["NONE", "DEFAULT", "OVERRIDE"], var.configuration.execute_command_configuration.logging)
98+
condition = var.configuration == null || try(contains(["NONE", "DEFAULT", "OVERRIDE"], var.configuration.execute_command_configuration.logging), true)
9999
error_message = "Execute command logging must be one of: NONE, DEFAULT, OVERRIDE."
100100
}
101101

0 commit comments

Comments
 (0)