fix: Revert changes to disabling auto mode #3253 (#3255)

This commit is contained in:
Bryant Biggs
2024-12-20 16:26:52 -06:00
committed by GitHub
parent 9fa75c0ded
commit 1ac67b8a60

11
main.tf
View File

@@ -75,10 +75,13 @@ resource "aws_eks_cluster" "this" {
for_each = local.create_outposts_local_cluster ? [] : [1]
content {
elastic_load_balancing {
dynamic "elastic_load_balancing" {
for_each = local.auto_mode_enabled ? [1] : []
content {
enabled = local.auto_mode_enabled
}
}
ip_family = var.cluster_ip_family
service_ipv4_cidr = var.cluster_service_ipv4_cidr
@@ -130,11 +133,15 @@ resource "aws_eks_cluster" "this" {
}
}
storage_config {
dynamic "storage_config" {
for_each = local.auto_mode_enabled ? [1] : []
content {
block_storage {
enabled = local.auto_mode_enabled
}
}
}
dynamic "upgrade_policy" {
for_each = length(var.cluster_upgrade_policy) > 0 ? [var.cluster_upgrade_policy] : []