Skip to content

Commit

Permalink
Try different subnetType
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Sep 19, 2023
1 parent b85d32e commit 5b66668
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_WITH_EGRESS
else ec2.SubnetType.PRIVATE_WITH_NAT
),
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_WITH_EGRESS
else ec2.SubnetType.PRIVATE_WITH_NAT
),
allow_public_subnet=True,
memory_size=2048,
Expand Down

0 comments on commit 5b66668

Please sign in to comment.