Skip to content

Commit 453257b

Browse files
committed
use variable to support eks cluster creation when authentication mode is CONFIG_MAP
1 parent a713f6f commit 453257b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

main.tf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ resource "aws_eks_cluster" "this" {
4444
access_config {
4545
authentication_mode = var.authentication_mode
4646

47-
# See access entries below - this is a one time operation from the EKS API.
48-
# Instead, we are hardcoding this to false and if users wish to achieve this
49-
# same functionality, we will do that through an access entry which can be
50-
# enabled or disabled at any time of their choosing using the variable
51-
# var.enable_cluster_creator_admin_permissions
52-
bootstrap_cluster_creator_admin_permissions = false
47+
# The variable enable_cluster_creator_admin_permissions must be set to true to avoid an EKS error when creating a cluster using the CONFIG_MAP authentication mode.
48+
bootstrap_cluster_creator_admin_permissions = var.enable_cluster_creator_admin_permissions
5349
}
5450

5551
dynamic "compute_config" {

0 commit comments

Comments
 (0)