mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-10 03:03:33 +02:00
11
main.tf
11
main.tf
@@ -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] : []
|
||||
|
||||
Reference in New Issue
Block a user