Skip to content

Commit 76cdfc3

Browse files
committed
fix(dataabse): restrict outbound traffic to private subnets
1 parent 12a18b0 commit 76cdfc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎terraform/layers/database/main.tf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ resource "aws_security_group" "sg_rds" {
6262
from_port = 0
6363
to_port = 0
6464
protocol = "-1"
65-
cidr_blocks = ["0.0.0.0/0"]
65+
cidr_blocks = data.terraform_remote_state.networking.outputs.private_subnets
6666
}
6767
}

0 commit comments

Comments
 (0)