https://pulumi.com logo
#google-cloud
Title
# google-cloud
l

little-photographer-65759

04/28/2020, 6:16 AM
Hi All , I am running into below issue while creating kubernetes cluster with pulumi. Version of Pulumi is 2.0.0. There was a clean npm install. Any pointers would be appreciated here. Thanks.
Diagnostics:
 
pulumi:pulumi:Stack (gke-gke-medium):
  
error: Running program '/Users/raminder.kaler/gcloud/forgeops/cluster/pulumi/gcp/gke' failed with an unhandled exception:
  
TSError: ⨯ Unable to compile TypeScript:
  
cluster.ts(25,12): error TS2339: Property 'names' does not exist on type 'Promise<GetZonesResult>'.
  
cluster.ts(36,34): error TS2339: Property 'latestNodeVersion' does not exist on type 'Promise<GetEngineVersionsResult>'.
  
cluster.ts(95,43): error TS2339: Property 'latestMasterVersion' does not exist on type 'Promise<GetEngineVersionsResult>'.
f

faint-table-42725

04/28/2020, 3:27 PM
This looks like you’re not treating the return values as promises. If you’re feeding these into a resource, you can just wrap them with
pulumi.output
g

gentle-diamond-70147

04/28/2020, 3:36 PM
2 Views