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