Skip to content

Commit

Permalink
feat: run cluster in ZA
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Dec 3, 2024
1 parent e50c5e1 commit 22c50df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@ 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, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value]
subnet_ids = [data.aws_ssm_parameter.subnet_1.value]
}
}

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, data.aws_ssm_parameter.subnet_2.value, data.aws_ssm_parameter.subnet_3.value]
subnet_ids = [data.aws_ssm_parameter.subnet_1.value]

scaling_config {
desired_size = 2
Expand Down

0 comments on commit 22c50df

Please sign in to comment.