example_subnet_ids = aws.ec2.get_subnet_ids(vpc_id="vpc-f...")
example_subnet = [aws.ec2.get_subnet(id=__value) for __key, __value in example_subnet_ids.ids]
I got this error after running pulumi preview.
Copy code
ValueError: too many values to unpack (expected 2)
b
broad-dog-22463
03/12/2021, 9:06 AM
hey @average-nest-71706 so the get_subnet_ids call will return a list of ids - you can then pass that list of subnet ids directly to the subnet parameter of LoadBalancer (which expects a list)
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.