sparse-intern-71089
06/01/2021, 4:53 AMgray-hamburger-90102
06/01/2021, 2:05 PMapply does not return String it returns Output<String> you can only access the value of key within the callback.
Usually this is not an issue as any arg can take type Output<T> as an input.
However, it seems that you are assigning the config value mySecret to the name of the PrivateKey which is of type string. Is that what you intended to do?
https://www.pulumi.com/docs/reference/pkg/tls/privatekey/#inputsbrash-airline-37413
06/01/2021, 11:20 PM@pulumi/tls library