This message was deleted.
# general
s
This message was deleted.
e
What do you mean by "pulumi function"?
a
Copy code
import * as aws from '@pulumi/aws';
            const xx = await aws.ec2.getSubnetIds({
                vpcId: "123",
            });
doing that in a policy dont work
e
ah right, yeh I don't think its expected for them to work in policy programs right now although it would be an interesting extension. Feel free to raise a feature request issue about it. For now yes you'll have to use the aws sdk for those sorts of lookups.