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