From 260fcb311b967fea70a6bebef58e0c593faf0f11 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 22 May 2025 23:18:05 -0500 Subject: [PATCH] Place ec2 explicitly in public subnet --- infrastructure/stack.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infrastructure/stack.py b/infrastructure/stack.py index 55db702..48d77e7 100644 --- a/infrastructure/stack.py +++ b/infrastructure/stack.py @@ -117,6 +117,9 @@ class IptvUpdaterStack(Stack): instance = ec2.Instance( self, "IptvUpdaterInstance", vpc=vpc, + vpc_subnets=ec2.SubnetSelection( + subnet_type=ec2.SubnetType.PUBLIC + ), instance_type=ec2.InstanceType.of( ec2.InstanceClass.T2, ec2.InstanceSize.MICRO