Skip to content

Commit

Permalink
enable auto-mode on eks
Browse files Browse the repository at this point in the history
  • Loading branch information
sohanyadav committed Dec 17, 2024
1 parent 8ca92be commit 8d946c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_eks_cluster" "cluster" {
}
# Compute Config (conditional setup for Auto Mode)
dynamic "compute_config" {
for_each = var.enable_auto_mode ? [1] : []
for_each = var.eks_auto_mode_enabled ? [1] : []
content {
enabled = true
node_pools = ["system"]
Expand All @@ -49,7 +49,7 @@ resource "aws_eks_cluster" "cluster" {
}
# Kubernetes Network Config (Auto Mode specific)
dynamic "kubernetes_network_config" {
for_each = var.enable_auto_mode ? [1] : []
for_each = var.eks_auto_mode_enabled ? [1] : []
content {
elastic_load_balancing {
enabled = true
Expand All @@ -58,7 +58,7 @@ resource "aws_eks_cluster" "cluster" {
}
# Storage Config (Auto Mode specific)
dynamic "storage_config" {
for_each = var.enable_auto_mode ? [1] : []
for_each = var.eks_auto_mode_enabled ? [1] : []
content {
block_storage {
enabled = true
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ variable "s3_csi_bucket_names" {
default = [""]
}

variable "enable_auto_mode" {
variable "eks_auto_mode_enabled" {
description = "Enable Auto Mode for EKS cluster"
type = bool
default = true
Expand Down

0 comments on commit 8d946c6

Please sign in to comment.