diff --git a/standalone_base_infrastructure/network_construct.py b/standalone_base_infrastructure/network_construct.py index a685143e..d8785d4a 100644 --- a/standalone_base_infrastructure/network_construct.py +++ b/standalone_base_infrastructure/network_construct.py @@ -34,6 +34,7 @@ def __init__( max_azs=base_settings.vpc_max_azs, cidr=base_settings.vpc_cidr, subnet_configuration=[public_subnet, private_subnet], + nat_gateways=base_settings.vpc_nat_gateways, ) vpc_endpoints = { diff --git a/standalone_base_infrastructure/standalone_config.py b/standalone_base_infrastructure/standalone_config.py index bcc8ec37..ab60da1c 100644 --- a/standalone_base_infrastructure/standalone_config.py +++ b/standalone_base_infrastructure/standalone_config.py @@ -22,6 +22,7 @@ class baseSettings(BaseSettings): vpc_cidr: Optional[str] = "10.100.0.0/16" vpc_max_azs: Optional[int] = 2 + vpc_nat_gateways: Optional[int] = 1 def cdk_env(self) -> dict: """Load a cdk environment dict for stack"""