Is it not possible to run pulumi functions in a pu...
# general
a
Is it not possible to run pulumi functions in a pulumi-policy? Do I have to use the normal aws-sdk? When trying i get `Error: Program run without the Pulumi engine available; re-run using the
pulumi
CLI`
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.