Skip to content

Commit 6db2bf9

Browse files
committed
DEV-14278 Changes to fix AWS018 - Add descriptions for sg rules.
1 parent 146f310 commit 6db2bf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/rds-postgres-sg/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resource "aws_security_group" "rds_postgres_sg" {
66
}
77

88
resource "aws_security_group_rule" "tamr_vm" {
9+
description = "Rule for ingress from Tamr VM to Postgres"
910
from_port = 5432
1011
protocol = "tcp"
1112
security_group_id = aws_security_group.rds_postgres_sg.id
@@ -15,6 +16,7 @@ resource "aws_security_group_rule" "tamr_vm" {
1516
}
1617

1718
resource "aws_security_group_rule" "spark_cluster" {
19+
description = "Rule for ingress from Spark cluster to Postgres"
1820
count = length(var.spark_cluster_sg_ids)
1921
from_port = 5432
2022
protocol = "tcp"
@@ -25,6 +27,7 @@ resource "aws_security_group_rule" "spark_cluster" {
2527
}
2628

2729
resource "aws_security_group_rule" "additional_cidrs" {
30+
description = "Rule for ingress from additional CIDRs to Postgres"
2831
count = length(var.additional_cidrs) == 0 ? 0 : 1
2932
from_port = 5432
3033
protocol = "tcp"

0 commit comments

Comments
 (0)