Skip to content

Commit

Permalink
Update cdk_aws_cookbook_106_stack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnculkin authored Mar 13, 2022
1 parent 2b8520f commit bf2e8d7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -34,7 +34,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
),
)

Expand All @@ -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
),
)

Expand All @@ -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
),
)

Expand All @@ -66,7 +66,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
)

# outputs
isolated_subnets = vpc.select_subnets(subnet_type=ec2.SubnetType.ISOLATED)
isolated_subnets = vpc.select_subnets(subnet_type=ec2.SubnetType.PRIVATE_ISOLATED)

CfnOutput(
self,
Expand Down

0 comments on commit bf2e8d7

Please sign in to comment.