is there a way I can find what the ID argument sho...
# general
a
is there a way I can find what the ID argument should be for that get function for a GCP cluster? I think that's what I'm messing up
c
@abundant-airplane-93796 was it manually provisioned? If so, just look at the name in the console.
shoudl look liek this:
in this case my id is
dockercon-talk
a
ha, so it's just the same as the name? i was thinking it'd be something like the long selfLink url...
so this is my little bit of code
Copy code
cluster = gcp.container.Cluster.get('standard-cluster-1', 'standard-cluster-1', {zone: 'us-east1-d'})
but i'm getting this when I run pulumi up
Copy code
error: Preview failed: refreshing urn:pulumi:irisvr-sandbox::irisvr::gcp:container/cluster:Cluster::standard-cluster-1: Error reading Container Cluster "": Cluster "" has status "" with message ""
c
@abundant-airplane-93796 sorry, I am super busy with kubecon … I’d love to help when I have more time. Can you ping me tomorrow?
a
no worries, actually had my interest in pulumi re-piqued at kubecon hence the q's. will reach out again in a few days. i actually suspect now that the problem might be my cluster having had some options turned on that aren't currently supported by the terraform gcp provider (ie, this was a sandbox cluster with istio beta turned on), but i might be wrong
c
oh lol that must have just sent when I opened my laptop…
I sent that hours ago.
a
ha. have a good night
c
distributed systems, man. let me take a look now since I’m online anyway…
a
i'm crashing, got a 7:50am flight back to ny, so don't rush on my account
c
@abundant-airplane-93796 this just worked for me:
Copy code
gcp.container.Cluster.get("<cluster-name>", "<cluster-name>", {
    project: "<cluster-name>"
});
@abundant-airplane-93796 I see what your problem is. This should work:
Copy code
gcp.container.Cluster.get("<cluster-name>", "<cluster-name>", {
    name: "<cluster-name>",
    project: "<project-name>"
});
this seems to be a bug. cc @white-balloon-205 ?