Another question, the documentation shows (<https:...
# python
p
Another question, the documentation shows (https://www.pulumi.com/docs/intro/concepts/programming-model/#resource-get) I could do this:
group = aws.ec2.SecurityGroup.get('sg-0dfd33cdac25b1ec9')
but the signature of that very function takes a
resource_name
and an
id
as positional arguments. What am I missing?
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).