Skip to content

Commit

Permalink
fix: subnet type changed to match shared VPC
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Sep 19, 2023
1 parent bdc0b5d commit b85d32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdk/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b85d32e

Please sign in to comment.