Skip to content

Commit

Permalink
Merge pull request #7 from 7SOATSquad30/feat/run-cluster-in-za
Browse files Browse the repository at this point in the history
Revert "feat: run cluster in ZA"
  • Loading branch information
MuriloKakazu authored Dec 3, 2024
2 parents 4c97e8d + ad753d7 commit 7260700
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,15 @@ 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]
}
}

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
Expand Down

0 comments on commit 7260700

Please sign in to comment.