Skip to content

Commit f489d60

Browse files
authored
Add Citygeo-Variety to RDS SG#34 (#34)
1 parent c431c1e commit f489d60

File tree

1 file changed

+10
-0
lines changed
  • terraform/modules/app

1 file changed

+10
-0
lines changed

terraform/modules/app/sg.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ resource "aws_vpc_security_group_ingress_rule" "rds_from_phl" {
2727
cidr_ipv4 = "10.0.0.0/8"
2828
}
2929

30+
resource "aws_vpc_security_group_ingress_rule" "rds_from_variety" {
31+
security_group_id = aws_security_group.rds.id
32+
33+
description = "RDS inbound access from Citygeo Variety"
34+
ip_protocol = "tcp"
35+
from_port = 5432
36+
to_port = 5432
37+
cidr_ipv4 = "100.64.0.0/16"
38+
}
39+
3040
// EC2 security group
3141
resource "aws_security_group" "ec2" {
3242
name = "${var.app_name}-${var.env_name}-ec2"

0 commit comments

Comments
 (0)