in dms_cdk/vpc.py [0:0]
def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None:
super().__init__(scope, construct_id, **kwargs)
#Create VPC
self.vpc = ec2.Vpc(self, "vpc",
cidr= '10.0.0.0/18',
max_azs=2,
subnet_configuration=[
ec2.SubnetConfiguration(
subnet_type=ec2.SubnetType.PUBLIC,
name='public',
cidr_mask=24,
reserved=False
), ec2.SubnetConfiguration(
subnet_type=ec2.SubnetType.PRIVATE,
name='private',
cidr_mask=23,
reserved=False
), ec2.SubnetConfiguration(
subnet_type=ec2.SubnetType.ISOLATED,
name='isolated',
cidr_mask=23,
reserved=False
)
]
)