From ad753d7230d766269903600eb83214a44de9c61d Mon Sep 17 00:00:00 2001 From: Murilo Kakazu Date: Mon, 2 Dec 2024 23:09:04 -0300 Subject: [PATCH] Revert "feat: run cluster in ZA" This reverts commit 22c50df1d88f7d5d02d18feea6c501a2b4d6e0e3. --- cluster.tf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cluster.tf b/cluster.tf index 208e781..ff62cbf 100644 --- a/cluster.tf +++ b/cluster.tf @@ -100,8 +100,7 @@ resource "aws_eks_cluster" "eks_cluster" { version = "1.25" vpc_config { - # subnet_ids = [data.aws_ssm_parameter.subnet_1.value, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value] - subnet_ids = [data.aws_ssm_parameter.subnet_1.value] + subnet_ids = [data.aws_ssm_parameter.subnet_1.value, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value] } } @@ -109,8 +108,7 @@ resource "aws_eks_node_group" "eks_node_group" { cluster_name = aws_eks_cluster.eks_cluster.name node_group_name = "eks-node-group" node_role_arn = data.aws_iam_role.eks_node_group_role.arn - # subnet_ids = [data.aws_ssm_parameter.subnet_1.value, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value] - subnet_ids = [data.aws_ssm_parameter.subnet_1.value] + subnet_ids = [data.aws_ssm_parameter.subnet_1.value, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value] scaling_config { desired_size = 2