From b85d32e0a0c0931095b5ad4a16c69d092e53b38a Mon Sep 17 00:00:00 2001 From: ividito Date: Tue, 19 Sep 2023 17:38:40 -0300 Subject: [PATCH] fix: subnet type changed to match shared VPC --- cdk/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdk/stack.py b/cdk/stack.py index 8259f8f..f606667 100644 --- a/cdk/stack.py +++ b/cdk/stack.py @@ -264,7 +264,7 @@ def build_api_lambda( vpc_subnets=ec2.SubnetSelection( subnet_type=ec2.SubnetType.PUBLIC if db_subnet_public - else ec2.SubnetType.PRIVATE_ISOLATED + else ec2.SubnetType.PRIVATE_WITH_EGRESS ), allow_public_subnet=True, memory_size=2048, @@ -330,7 +330,7 @@ def build_ingestor( vpc_subnets=ec2.SubnetSelection( subnet_type=ec2.SubnetType.PUBLIC if db_subnet_public - else ec2.SubnetType.PRIVATE_ISOLATED + else ec2.SubnetType.PRIVATE_WITH_EGRESS ), allow_public_subnet=True, memory_size=2048,