From e64f8088b791cd38e37c92385d8d3477c7206ea0 Mon Sep 17 00:00:00 2001 From: hikiko999 <132985874+hikiko999@users.noreply.github.com> Date: Tue, 20 Feb 2024 02:03:48 -0600 Subject: [PATCH] Update cdk_aws_cookbook_108_stack.py Fixed errors with SubnetType.ISOLATED by changing to SubnetType.PRIVATE_ISOLATED --- .../cdk_aws_cookbook_108/cdk_aws_cookbook_108_stack.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ), )