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
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m32s
This commit is contained in:
@@ -218,13 +218,6 @@ class IptvUpdaterStack(Stack):
|
|||||||
"Allow PostgreSQL access from EC2 instance"
|
"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)
|
# Create RDS PostgreSQL instance (free tier compatible - db.t3.micro)
|
||||||
db = rds.DatabaseInstance(
|
db = rds.DatabaseInstance(
|
||||||
self, "IptvUpdaterDB",
|
self, "IptvUpdaterDB",
|
||||||
|
|||||||
Reference in New Issue
Block a user