mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 17:22:13 +01:00
17
main.tf
17
main.tf
@@ -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