early-musician-41645
06/19/2019, 6:56 PM19 async function getServiceAccountAuth() {
20 const secret = await aws.secretsmanager.getSecretVersion({
21 secretId: "some-secret-name",
22 });
23 const secretString = secret.secretString
24 console.log("SECRETSTRING: "+secretString);
25
26 let username: string = JSON.parse(secretString)["username"];
27 let password: string = JSON.parse(secretString)["password"];
28
29 console.log("username: " + username);
30
31 return "Basic " + new Buffer(username + ":" + password).toString("base64");
32 }
When I run that function I get this:
error: Plan apply failed: Program run without the `pulumi` CLI; this may not be what you want (enable PULUMI_TEST_MODE to disable this error)
What am I doing wrong?white-balloon-205
early-musician-41645
06/21/2019, 2:56 PM