mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-14 15:03:28 +01:00
1 parent
9fa75c0ded
commit
1ac67b8a60
1 file changed
+12
-5
@@ -75,9 +75,12 @@ resource "aws_eks_cluster" "this" {
|
|||||||
for_each = local.create_outposts_local_cluster ? [] : [1]
|
for_each = local.create_outposts_local_cluster ? [] : [1]
|
||||||
|
|
||||||
content {
|
content {
|
||||||
elastic_load_balancing {
|
dynamic "elastic_load_balancing" {
|
||||||
|
for_each = local.auto_mode_enabled ? [1] : []
|
||||||
|
|
||||||
enabled = local.auto_mode_enabled
|
content {
|
||||||
|
enabled = local.auto_mode_enabled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ip_family = var.cluster_ip_family
|
ip_family = var.cluster_ip_family
|
||||||
@@ -130,9 +133,13 @@ resource "aws_eks_cluster" "this" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
storage_config {
|
dynamic "storage_config" {
|
||||||
block_storage {
|
for_each = local.auto_mode_enabled ? [1] : []
|
||||||
enabled = local.auto_mode_enabled
|
|
||||||
|
content {
|
||||||
|
block_storage {
|
||||||
|
enabled = local.auto_mode_enabled
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user