dome9 / onboarding-scripts

A public repository with scripts and tools for mass / automated onboarding of cloud accounts (AWS,Azure,GCP)
23 stars 25 forks source link

Script for GCP encounters google.cloudresourcemanager error & aborts #6

Open samqi opened 4 years ago

samqi commented 4 years ago

Error occured using the command with the JSON key file for the Service Account: node gcpOrgImporter.js –p <gcp-sa-jsonkeyfile> -I <dome9api> -s <dome9secret>

Despite entering the correct parameters & commands, I encountered the following error:


gcpOrgImporter.js:15
var cloudresourcemanager = google.cloudresourcemanager('v1');
    ^TypeError: google.cloudresourcemanager is not a function
    at Object.<anonymous> (DRIVELOCATIONOFSCRIPT\onboarding-scripts\GCP\gcpOrgImporter.js:15:35)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47