From 4cb3811d170b5a0258111a57803270cafd0e0dd6 Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 21 May 2025 14:16:48 -0500 Subject: [PATCH] RDS to use public subnet --- infrastructure/stack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infrastructure/stack.py b/infrastructure/stack.py index db4b2a6..d068c14 100644 --- a/infrastructure/stack.py +++ b/infrastructure/stack.py @@ -205,13 +205,16 @@ class IptvUpdaterStack(Stack): ec2.InstanceSize.MICRO ), vpc=vpc, + vpc_subnets=ec2.SubnetSelection( + subnet_type=ec2.SubnetType.PUBLIC + ), security_groups=[rds_sg], allocated_storage=10, max_allocated_storage=10, database_name="iptv_updater", removal_policy=RemovalPolicy.DESTROY, deletion_protection=False, - publicly_accessible=False + publicly_accessible=True ) # Add RDS permissions to instance role