mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-27 11:51:07 +01:00
11
main.tf
11
main.tf
@@ -75,10 +75,13 @@ 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] : []
|
||||||
|
|
||||||
|
content {
|
||||||
enabled = local.auto_mode_enabled
|
enabled = local.auto_mode_enabled
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ip_family = var.cluster_ip_family
|
ip_family = var.cluster_ip_family
|
||||||
service_ipv4_cidr = var.cluster_service_ipv4_cidr
|
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 {
|
block_storage {
|
||||||
enabled = local.auto_mode_enabled
|
enabled = local.auto_mode_enabled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dynamic "upgrade_policy" {
|
dynamic "upgrade_policy" {
|
||||||
for_each = length(var.cluster_upgrade_policy) > 0 ? [var.cluster_upgrade_policy] : []
|
for_each = length(var.cluster_upgrade_policy) > 0 ? [var.cluster_upgrade_policy] : []
|
||||||
|
|||||||
Reference in New Issue
Block a user