orange-tailor-85423
02/11/2019, 8:02 PMgorgeous-egg-16927
02/11/2019, 8:05 PMorange-tailor-85423
02/11/2019, 8:06 PMwhite-balloon-205
gorgeous-egg-16927
02/11/2019, 8:07 PMorange-tailor-85423
02/11/2019, 8:08 PMwhite-balloon-205
orange-tailor-85423
02/11/2019, 8:08 PMwhite-balloon-205
orange-tailor-85423
02/11/2019, 8:09 PMwhite-balloon-205
orange-tailor-85423
02/11/2019, 8:11 PMgorgeous-egg-16927
02/11/2019, 8:28 PMgetAccountKeyArgs
are expecting a string
rather than an Input<string>
for the name. Seems like that example wouldn't work without updating that type as wellorange-tailor-85423
02/11/2019, 8:31 PMprojects/${projectNumber}/serviceAccounts/${
sysdigAccountDef.accountId
}/keys/${sysdigAccountKey.id}
,
publicKeyType: “TYPE_X509_PEM_FILE”
})
);white-balloon-205
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myaccount = new gcp.serviceAccount.Account("myaccount", {
accountId: "dev-foo-account",
});
const mykeyKey = new gcp.serviceAccount.Key("mykey", {
serviceAccountId: myaccount.name,
});
const mykeyAccountKey = mykeyKey.name.apply(keyname => gcp.serviceAccount.getAccountKey({
name: keyname,
publicKeyType: "TYPE_X509_PEM_FILE",
}));
export const publicKey = mykeyAccountKey.apply(hmm => hmm.publicKey);
orange-tailor-85423
02/11/2019, 8:41 PMwhite-balloon-205
export let foo;
if (something) {
foo = mykeyAccountKey.apply(hmm => hmm.publicKey);
}
orange-tailor-85423
02/11/2019, 8:45 PM