This message was deleted.
s
This message was deleted.
g
You need to call
apply
and get the promise inside the callback. This wil wrap the promise in an output and resolve it withing Pulumi resource graph
Copy code
const publicSubnets = vpc.id.apply(vpcId => ec2.getSubnetIds({
	  vpcId: vpcId,
      tags: {
        type: "public",
      },
    }))
w
Many thanks @green-school-95910, that has worked for me 🙏