https://pulumi.com logo
l

little-energy-64187

08/16/2019, 11:40 AM
What's the right way to import a gke managed certificate? I have been trying
Copy code
new k8s.apiextensions.CustomResource("service-dev-certificate", {
    apiVersion: "<http://networking.gke.io/v1beta1|networking.gke.io/v1beta1>",
    kind: "ManagedCertificate",
    metadata: {
        labels: {
            app: "networking",
            stage: "service-dev",
        },
        namespace: "namespace",
        name: "service-dev-certificate",
    },
    spec: {
        domains: ["<http://service-dev.example.com|service-dev.example.com>"]
    },
}, { provider: k8sProvider, import: "service-dev-certificate" })
but that doesn't seem to find it
Is there a way to see the requests, where does pulumi try to look up imports?
b

best-xylophone-83824

08/19/2019, 11:06 AM
yes, run it like
TF_LOG=DEBUG pulumi up -v=10
l

little-energy-64187

08/19/2019, 11:25 AM
hm that doesn't seem to make the output different
b

best-xylophone-83824

08/19/2019, 11:27 AM
sorry,forgot to add
--logtostderr
, so it should be:
TF_LOG=DEBUG pulumi up -v=10 --logtostderr
👍 1
l

little-energy-64187

08/19/2019, 4:25 PM
figured this out btw the correct import id is:
namespace/name
instead of just
name
👍🏻 1