billions-ocean-88595
07/09/2023, 9:40 AMServiceNetworkConfigurationArgs
dev_vpc = aws.ec2.get_vpc(id=VPC_ID)
vpc_subnets = aws.ec2.get_subnets(
filters=[aws.ec2.GetSubnetsFilterArgs(name='vpc-id', values=[dev_vpc.id]), ]
)
private_subnets = ???
... then how to filter them, so I can give to
network_configuration=aws.ecs.ServiceNetworkConfigurationArgs(
assign_public_ip=False,
subnets=private_subnets.ids,
security_groups=[group.id],
)
I tried to just use:
private_subnets = [ aws.ec2.get_subnet(id=it.id) for it in vpc_subnets] # then further filter
but things are not of the right type.Thanks for any suggestions!billowy-army-68599
map-public-ip-on-launch
filter:
aws.ec2.GetSubnetsFilterArgs(name='map-public-ip-on-launch', values=["false"])
billions-ocean-88595
07/10/2023, 7:48 AM