https://pulumi.com logo
#typescript
Title
# typescript
b

brash-airline-37413

06/02/2021, 4:15 AM
Anyone got a second to help me with this. Completely stuck. https://github.com/pulumi/pulumi/issues/7179
b

better-shampoo-48884

06/02/2021, 9:53 AM
I'm presuming the issue is with the requireSecret bit? that should output a string no?
just do:
Copy code
const mySecret = cfg.requireSecret('mySecret');
const privateKey = new pulumi.tls.PrivateKey(mySecret, { algorithm: 'RSA' }

if mySecret is of type Output<string> then you can't pass that as the first param to PrivateKey.. that needs to be a string.