diff --git a/aws/cluster/modules/eks-cluster/main.tf b/aws/cluster/modules/eks-cluster/main.tf index a822aba..bc51f4b 100644 --- a/aws/cluster/modules/eks-cluster/main.tf +++ b/aws/cluster/modules/eks-cluster/main.tf @@ -10,8 +10,8 @@ resource "aws_eks_cluster" "this" { version = var.k8s_version vpc_config { - security_group_ids = [aws_security_group.control_plane.id] - subnet_ids = concat(var.private_subnet_ids, var.public_subnet_ids) + security_group_ids = [aws_security_group.control_plane.id] + subnet_ids = concat(var.private_subnet_ids, var.public_subnet_ids) endpoint_private_access = var.endpoint_private_access endpoint_public_access = var.endpoint_public_access } diff --git a/aws/cluster/modules/eks-cluster/variables.tf b/aws/cluster/modules/eks-cluster/variables.tf index dcdc1c0..015e5ae 100644 --- a/aws/cluster/modules/eks-cluster/variables.tf +++ b/aws/cluster/modules/eks-cluster/variables.tf @@ -5,15 +5,15 @@ variable "enabled_cluster_log_types" { } variable "endpoint_private_access" { - type = bool + type = bool description = "Enables the Amazon EKS private API server endpoint." - default = false + default = false } variable "endpoint_public_access" { - type = bool + type = bool description = "Enables the Amazon EKS public API server endpoint." - default = true + default = true } variable "log_retention_in_days" { diff --git a/aws/cluster/variables.tf b/aws/cluster/variables.tf index 00df4c8..65e151e 100644 --- a/aws/cluster/variables.tf +++ b/aws/cluster/variables.tf @@ -5,15 +5,15 @@ variable "enabled_cluster_log_types" { } variable "endpoint_private_access" { - type = bool + type = bool description = "Enables the Amazon EKS private API server endpoint." - default = false + default = false } variable "endpoint_public_access" { - type = bool + type = bool description = "Enables the Amazon EKS public API server endpoint." - default = true + default = true } variable "k8s_version" {