shared_hosted_zone_ids = Output.all(shared_hosted_zones).apply(
lambda shared_hosted_zones: zone["zone_id"] for zone in shared_hosted_zones if zone["name"] == f"{domain_prefix}.{name}")
but still get
Copy code
TypeError: 'Output' object is not iterable, consider iterating the underlying value inside an 'apply'
b
billowy-army-68599
09/21/2022, 6:52 PM
it’s hard to follow the code a little, but if you’re getting that error you’re trying to iterate over an async value
f
future-france-34957
09/21/2022, 9:52 PM
ohhhhh, oh, right.
Don’t iterate over an async value, within an async value.
Got it, thanks!
Sorry for asking, my bad.
b
billowy-army-68599
09/21/2022, 9:57 PM
no need to apologise for asking questions, tat’s why we’re here!
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.