sparse-intern-71089
09/15/2020, 1:08 AMlittle-cartoon-10569
09/15/2020, 1:27 AMlittle-cartoon-10569
09/15/2020, 1:28 AMawait a getOutputValue to make that example work...many-psychiatrist-74327
09/15/2020, 6:50 PMkubeconfig takes a string | pulumi.OutputInstance<string> | Promise<string> | undefinedmany-psychiatrist-74327
09/15/2020, 6:51 PMpulumi.Output was a promise too, but I guess not
im trying out StackReference.getOutputValue() instead (and requireOutputValue())many-psychiatrist-74327
09/15/2020, 6:57 PMPromise<any>. 😞gentle-diamond-70147
09/15/2020, 7:21 PMmany-psychiatrist-74327
09/15/2020, 7:22 PMconst stack = pulumi.getStack()
const infra = new pulumi.StackReference(`jetpack/infra/${stack}`)
const provider = new k8s.Provider('infra-cluster-provider', {
kubeconfig: infra.getOutput("kubeconfig")
})many-psychiatrist-74327
09/15/2020, 7:23 PMinfra.getOutputValue("kubeconfig") (same error)
and infra.getOutput("kubeconfig").get() (different error, cannot call .get() during preview/upmany-psychiatrist-74327
09/15/2020, 7:25 PMawait, but it requires target of es2017 or higher. pulumi new sets the target to es2016, presumably for good reason (haven’t tried changing it yet)gentle-diamond-70147
09/15/2020, 8:00 PMinterface conversion: interface {} is resource.PropertyMap, not string as the error?many-psychiatrist-74327
09/15/2020, 9:33 PMmany-psychiatrist-74327
09/15/2020, 9:33 PMpulumi version
v2.10.0bitter-toddler-22112
10/01/2020, 11:47 AMmany-psychiatrist-74327
10/12/2020, 11:06 PMpulumi destroy and re-creation, without changing any of the code, the error went away.