Skip to content

Commit

Permalink
feat: remove redundand network infra
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloKakazu committed Sep 28, 2024
1 parent c299dee commit de2ce89
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,6 @@ data "aws_ssm_parameter" "subnet_3" {
name = "/rds/subnet_3"
}

resource "aws_internet_gateway" "eks_igw" {
vpc_id = data.aws_ssm_parameter.vpc_id.value
tags = {
Name = "eks-igw"
}
}

resource "aws_route_table" "eks_public_rt" {
vpc_id = data.aws_ssm_parameter.vpc_id.value

route {
cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.eks_igw.id
}

tags = {
Name = "eks-public-rt"
}
}

resource "aws_route_table_association" "public_rt_assoc_1" {
subnet_id = data.aws_ssm_parameter.subnet_1.value
route_table_id = aws_route_table.eks_public_rt.id
}

resource "aws_route_table_association" "public_rt_assoc_2" {
subnet_id = data.aws_ssm_parameter.subnet_2.value
route_table_id = aws_route_table.eks_public_rt.id
}

resource "aws_route_table_association" "public_rt_assoc_3" {
subnet_id = data.aws_ssm_parameter.subnet_3.value
route_table_id = aws_route_table.eks_public_rt.id
}

resource "aws_iam_role" "eks_cluster_role" {
name = "eks-cluster-role"

Expand Down

0 comments on commit de2ce89

Please sign in to comment.