sparse-intern-71089
03/28/2022, 3:01 AMbreezy-painter-29573
03/28/2022, 3:38 AMmodern-evening-83482
07/08/2022, 5:35 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...No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by