This message was deleted.
# python
s
This message was deleted.
p
I tried the following:
Copy code
vpc.id.apply(lambda vpc_id: aws.ec2.get_subnet_ids(
            tags={'Environment': environment},
            vpc_id=vpc_id,
        )).apply(lambda subnet_ids_result: [
            sn_id for sn_id in subnet_ids_result.ids
            if '-private-' in sn_id
        ])
but it just used up all RAM.
For future reference, the docs are wrong and iterating over an Output consumes all RAM (https://github.com/pulumi/pulumi/issues/5028).