rough-oil-1458
09/02/2018, 7:47 PMbig-piano-35669
let datastore = await vsphere.getDatastore({
name: "bdf1000-01",
datacenterId: "datacenter-21"
});
console.log(datastore.id);
rough-oil-1458
09/02/2018, 7:47 PMbig-piano-35669
big-piano-35669
big-piano-35669
rough-oil-1458
09/02/2018, 7:48 PMrough-oil-1458
09/02/2018, 7:48 PMrough-oil-1458
09/02/2018, 7:48 PMbig-piano-35669
big-piano-35669
rough-oil-1458
09/02/2018, 7:50 PMbig-piano-35669
rough-oil-1458
09/02/2018, 7:50 PMbig-piano-35669
config
module: https://github.com/Smithx10/pulumi-vsphere/blob/master/sdk/nodejs/config/vars.tsrough-oil-1458
09/02/2018, 7:51 PMrough-oil-1458
09/02/2018, 7:51 PMrough-oil-1458
09/02/2018, 7:52 PMrough-oil-1458
09/02/2018, 7:52 PMbig-piano-35669
$ pulumi config set vsphere:user admin
$ pulumi config set vsphere:password mysecretpassword --secret
big-piano-35669
require
calls for the required configuration variables:
export let password: string = __config.require("password");
rough-oil-1458
09/02/2018, 7:53 PMbig-piano-35669
rough-oil-1458
09/02/2018, 7:53 PMrough-oil-1458
09/02/2018, 7:53 PMrough-oil-1458
09/02/2018, 7:53 PMrough-oil-1458
09/02/2018, 7:53 PMbig-piano-35669
The Terraform Provider also takes EnvVarsOh, I wonder if you're hitting: https://github.com/pulumi/pulumi-terraform/issues/181
big-piano-35669
big-piano-35669