diff --git a/108-Storing-Encrypting-Accessing-Passwords/cdk-AWS-Cookbook-108/cdk_aws_cookbook_108/cdk_aws_cookbook_108_stack.py b/108-Storing-Encrypting-Accessing-Passwords/cdk-AWS-Cookbook-108/cdk_aws_cookbook_108/cdk_aws_cookbook_108_stack.py index 8e816ed..37d355b 100644 --- a/108-Storing-Encrypting-Accessing-Passwords/cdk-AWS-Cookbook-108/cdk_aws_cookbook_108/cdk_aws_cookbook_108_stack.py +++ b/108-Storing-Encrypting-Accessing-Passwords/cdk-AWS-Cookbook-108/cdk_aws_cookbook_108/cdk_aws_cookbook_108_stack.py @@ -15,7 +15,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: isolated_subnets = ec2.SubnetConfiguration( name="ISOLATED", - subnet_type=ec2.SubnetType.ISOLATED, + subnet_type=ec2.SubnetType.PRIVATE_ISOLATED, cidr_mask=24 ) @@ -33,7 +33,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: private_dns_enabled=True, subnets=ec2.SubnetSelection( one_per_az=False, - subnet_type=ec2.SubnetType.ISOLATED + subnet_type=ec2.SubnetType.PRIVATE_ISOLATED ), ) @@ -44,7 +44,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: private_dns_enabled=True, subnets=ec2.SubnetSelection( one_per_az=False, - subnet_type=ec2.SubnetType.ISOLATED + subnet_type=ec2.SubnetType.PRIVATE_ISOLATED ), ) @@ -54,7 +54,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: private_dns_enabled=True, subnets=ec2.SubnetSelection( one_per_az=False, - subnet_type=ec2.SubnetType.ISOLATED + subnet_type=ec2.SubnetType.PRIVATE_ISOLATED ), ) @@ -64,7 +64,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: private_dns_enabled=True, subnets=ec2.SubnetSelection( one_per_az=False, - subnet_type=ec2.SubnetType.ISOLATED + subnet_type=ec2.SubnetType.PRIVATE_ISOLATED ), )