Remove ingress rule to allow remote access to database since database is now on a private subnet
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m32s

This commit is contained in:
2025-05-23 01:14:44 -05:00
parent 260fcb311b
commit 99d26a8f53

View File

@@ -217,13 +217,6 @@ class IptvUpdaterStack(Stack):
ec2.Port.tcp(5432),
"Allow PostgreSQL access from EC2 instance"
)
# Allow PostgreSQL access from developer's IP
rds_sg.add_ingress_rule(
ec2.Peer.ipv4("47.189.88.48/32"), # Replace with your actual IP
ec2.Port.tcp(5432),
"Allow PostgreSQL access from developer IP"
)
# Create RDS PostgreSQL instance (free tier compatible - db.t3.micro)
db = rds.DatabaseInstance(