sparse-intern-71089
11/10/2022, 4:43 PMbillowy-army-68599
hallowed-printer-89159
11/10/2022, 4:51 PMbillowy-army-68599
billowy-army-68599
const sshKey = new tls.PrivateKey("bastion", {
algorithm: "RSA",
})
const sshKey = new SshPublicKey('test', {
expirationTimeUsec: '250000',
key: sshKey.publicKeyOpenssh,
project: 'example',
user: '<mailto:----@univision.net|----@univision.net>',
});
hallowed-printer-89159
11/10/2022, 4:59 PMhallowed-printer-89159
11/10/2022, 5:14 PMbillowy-army-68599
// Create a GCP resource (Storage Bucket)
const sshKey = new tls.PrivateKey("example",{
algorithm: "RSA",
})
const gcloudKey = new gcp.oslogin.SshPublicKey("example",{
key: sshKey.publicKeyOpenssh,
user: "<mailto:lbriggs@pulumi.com|lbriggs@pulumi.com>",
})
hallowed-printer-89159
11/10/2022, 5:29 PMbillowy-army-68599
export const privateKey = sshKey.privateKeyOpenssh
Then run pulumi up
Then run pulumi stack outputs --show-secrets
hallowed-printer-89159
11/10/2022, 5:33 PMhallowed-printer-89159
11/10/2022, 6:41 PMmetadata: {
'enable-oslogin': "true",
'ssh-keys': '<mailto:----@univision.net|----@univision.net>' +":"+ sshKey.key
},
Got the following error: Calling [toString] on an [Output<T>] is not supported.billowy-army-68599
apply
hallowed-printer-89159
11/10/2022, 6:49 PMmetadata: {
'enable-oslogin': "true",
'ssh-keys': '<mailto:----@univision.net|----@univision.net>' +":"+ sshKey.key.apply(v => v.toString())
},
billowy-army-68599
'ssh-keys': pulumi.interpolate`--- +":" ssh.key
hallowed-printer-89159
11/10/2022, 6:58 PM