white-balloon-205
.getXYZ
function available in the libraries which can be used to lookup existing resources. See for example https://pulumi.io/reference/pkg/nodejs/@pulumi/aws/ecs/#getCluster. You can see an example of using this sort of API here: https://github.com/pulumi/pulumi-aws-infra/blob/master/nodejs/aws-infra/network.ts#L94.