From 99d26a8f5384b57b9a7af92131e2243b0c8b1923 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 23 May 2025 01:14:44 -0500 Subject: [PATCH] Remove ingress rule to allow remote access to database since database is now on a private subnet --- infrastructure/stack.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/infrastructure/stack.py b/infrastructure/stack.py index 48d77e7..8437321 100644 --- a/infrastructure/stack.py +++ b/infrastructure/stack.py @@ -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(