import * as aws from '@pulumi/aws';
const xx = await aws.ec2.getSubnetIds({
vpcId: "123",
});
adamant-father-26302
05/31/2022, 10:28 AM
doing that in a policy dont work
e
echoing-dinner-19531
05/31/2022, 10:55 AM
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.
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.