swift-advantage-57448
03/24/2022, 8:15 PMlittle-cartoon-10569
03/24/2022, 8:27 PMswift-advantage-57448
03/27/2022, 11:22 PMlittle-cartoon-10569
03/28/2022, 12:35 AMswift-advantage-57448
03/30/2022, 2:22 PMmodern-evening-83482
07/08/2022, 5:37 AMprivate_subnets = []
for subnet in range(1, number_of_azs + 1):
ec2_subnet = aws.ec2.Subnet(
f"{env}-ec2Subnet-{subnet}-{suffix}",
availability_zone=available_azs.names[subnet - 1],
cidr_block=f"10.27.{subnet}.0/24",
vpc_id=vpc.id,
map_public_ip_on_launch=False,
tags={
"Type": "Private",
"Name": f"{env}-ec2Subnet-{subnet}-private-{suffix}",
},
opts=pulumi.ResourceOptions(provider=provider),
)
private_subnets.append(ec2_subnet)
will this work? I need to get the subnet ids at the end..However I am still getting each element as type Output... So this wont work?little-cartoon-10569
07/10/2022, 2:38 AM