sparse-intern-71089
08/11/2023, 8:12 PMstocky-restaurant-98004
08/11/2023, 11:00 PMstocky-restaurant-98004
08/11/2023, 11:01 PMdamp-salesmen-74351
08/11/2023, 11:46 PMnat_gateways
option:
def create_vpc():
<http://log.info|log.info>('[base.vpc.create_vpc]')
eip = pulumi_aws.ec2.Eip(
f"eip{DEPLOY_NAME_PREFIX}"
)
vpc = pulumi_awsx.ec2.Vpc(
VPC_NAME,
cidr_block="12.0.0.0/16",
subnet_specs=[
pulumi_awsx.ec2.SubnetSpecArgs(
type=pulumi_awsx.ec2.SubnetType.PRIVATE,
tags={
CLUSTER_TAG: "owned",
'<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>': '1',
},
),
pulumi_awsx.ec2.SubnetSpecArgs(
type=pulumi_awsx.ec2.SubnetType.PUBLIC,
tags={
CLUSTER_TAG: "owned",
'<http://kubernetes.io/role/elb|kubernetes.io/role/elb>': '1',
},
),
],
availability_zone_names=AVAILABILITY_ZONE_NAMES,
nat_gateways=pulumi_awsx.ec2.NatGatewayConfigurationArgs(
strategy=pulumi_awsx.ec2.NatGatewayStrategy.SINGLE,
elastic_ip_allocation_ids=[eip.id],
),
tags={"name": f"{VPC_NAME}-tag"}
)
return vpc
stocky-restaurant-98004
08/21/2023, 2:04 PM