Hi, how do you figure out the name of an existing ...
# general
g
Hi, how do you figure out the name of an existing Kubernetes cluster in Azure if you have setup the cluster in a different Pulumi project without specifying an unique name so that Pulumi will add a random suffix to it? The function
getKubernetesCluster
expect the unique name but there is no function for the ResourceGroup to get a list of the existing clusters like
az resource list -g name
.
c
If you can, use a StackReference. Then you won’t need to “get it”
👍 1
g
It’s actually part of a separate Pulumi project, so not accessible as a StackReference.
c
It doesn’t matter if it’s part of a separate project.
new pulumi.StackReference('YourOrg/YourProject/YourStack');
👍 1
g
thanks!