diff --git a/network/infrastructure/construct.py b/network/infrastructure/construct.py index f3daa500..febfe9ed 100644 --- a/network/infrastructure/construct.py +++ b/network/infrastructure/construct.py @@ -25,9 +25,15 @@ def __init__( subnet_type=aws_ec2.SubnetType.PUBLIC, cidr_mask=24, ) - isolated_subnet = aws_ec2.SubnetConfiguration( - name="isolated", - subnet_type=aws_ec2.SubnetType.PRIVATE_ISOLATED, + + private_subnet1 = aws_ec2.SubnetConfiguration( + name="private-subnet-1", + subnet_type=aws_ec2.SubnetType.PRIVATE, + cidr_mask=24, + ) + private_subnet2 = aws_ec2.SubnetConfiguration( + name="private-subnet-2", + subnet_type=aws_ec2.SubnetType.PRIVATE, cidr_mask=24, ) @@ -38,9 +44,10 @@ def __init__( cidr="10.10.0.0/16", subnet_configuration=[ public_subnet, - isolated_subnet + private_subnet1, + private_subnet2 ], - nat_gateways=0, + nat_gateways=1, ) interface_endpoints = [