diff --git a/patch-aws-auth/variables.aws-auth.tf b/patch-aws-auth/variables.aws-auth.tf index 19b562d..e48a1a9 100644 --- a/patch-aws-auth/variables.aws-auth.tf +++ b/patch-aws-auth/variables.aws-auth.tf @@ -11,7 +11,7 @@ variable "aws_auth_users" { default = [] validation { - condition = all([for v in var.aws_auth_users : v.userarn != null && v.aws_username != null]) + condition = alltrue([for v in var.aws_auth_users : v.userarn != null && v.aws_username != null]) error_message = "Both userarn and aws_userarn may not be null." } } @@ -27,7 +27,7 @@ variable "aws_auth_roles" { default = [] validation { - condition = all([for v in var.aws_auth_roles : v.rolearn != null && v.aws_rolename != null]) + condition = alltrue([for v in var.aws_auth_roles : v.rolearn != null && v.aws_rolename != null]) error_message = "Both rolearn and aws_rolename may not be null." } }