Skip to content

Commit d8042f2

Browse files
jms200CRThaze
andauthored
Update modules/comet_eks/variables.tf
Co-authored-by: Diego Fernando Carrión <[email protected]>
1 parent d3b8e77 commit d8042f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/comet_eks/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ variable "eks_authentication_mode" {
5151
description = "Authentication mode for the EKS cluster. Valid values: CONFIG_MAP, API, API_AND_CONFIG_MAP"
5252
type = string
5353
default = "API_AND_CONFIG_MAP"
54+
55+
validation {
56+
condition = contains(["CONFIG_MAP", "API", "API_AND_CONFIG_MAP"], var.eks_authentication_mode)
57+
error_message = "Authentication mode must be CONFIG_MAP, API, API_AND_CONFIG_MAP."
58+
}
5459
}
5560

5661
variable "eks_enable_cluster_creator_admin_permissions" {

0 commit comments

Comments
 (0)