Anyone got a second to help me with this. Complete...
# typescript
b
Anyone got a second to help me with this. Completely stuck. https://github.com/pulumi/pulumi/issues/7179
b
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.