Skip to content

Commit 1bbcbd3

Browse files
committed
NRL-1385 remove unused security group
1 parent 9e72ff3 commit 1bbcbd3

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

terraform/account-wide-infrastructure/modules/vpc/outputs.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ output "private_subnet_id" {
66
value = aws_subnet.private_subnet.id
77
}
88

9-
output "security_group" {
10-
value = [aws_security_group.sg.id]
11-
}
12-
139
output "powerbi_gw_security_group_id" {
1410
value = aws_security_group.powerbi_gw_sg.id
1511
}

terraform/account-wide-infrastructure/modules/vpc/vpc.tf

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -77,37 +77,6 @@ resource "aws_route_table_association" "private_rt_asso" {
7777
route_table_id = aws_route_table.private_rt.id
7878
}
7979

80-
resource "aws_security_group" "sg" {
81-
name = "allow_ssh_http"
82-
description = "Allow ssh http inbound traffic"
83-
vpc_id = aws_vpc.app_vpc.id
84-
85-
ingress {
86-
from_port = 3389
87-
to_port = 3389
88-
protocol = "tcp"
89-
cidr_blocks = ["0.0.0.0/0"]
90-
ipv6_cidr_blocks = ["::/0"]
91-
}
92-
93-
ingress {
94-
description = "HTTP from VPC"
95-
from_port = 80
96-
to_port = 80
97-
protocol = "tcp"
98-
cidr_blocks = ["0.0.0.0/0"]
99-
ipv6_cidr_blocks = ["::/0"]
100-
}
101-
102-
egress {
103-
from_port = 0
104-
to_port = 0
105-
protocol = "-1"
106-
cidr_blocks = ["0.0.0.0/0"]
107-
ipv6_cidr_blocks = ["::/0"]
108-
}
109-
}
110-
11180
resource "aws_security_group" "powerbi_gw_sg" {
11281
name = "powerbi-gw-sg"
11382
description = "Only allow egress traffic"

0 commit comments

Comments
 (0)