brash-hairdresser-60389
03/11/2024, 10:04 PM...
const name = args.tag
? `sa-${args.name}-${args.tag.substring(0, 5)}`
: `sa-${args.name}`;
this.resourceSAst = new gcp.serviceaccount.Account(name, {
accountId: name,
displayName: `${args.name} ${args.tag} Service Account`,
});
this.resourceSAkey = new gcp.serviceaccount.Key(`sa-key-${args.name}`, {
serviceAccountId: this.resourceSAst.name,
publicKeyType: 'TYPE_X509_PEM_FILE',
});
this.privateKey = this.resourceSAkey.privateKey.apply<string>(
(val) =>
HERE --> JSON.parse(Buffer.from(val, 'base64').toString('utf8')).private_key,
);
...
The value of the application is undefined, with no errors and nothing.
Any idea? any help would be more than appreciated