Hello there, is there a way to store certs in pulu...
# general
o
Hello there, is there a way to store certs in pulumi project without exposing a file with plaintext?
s
Hi @orange-ghost-99337! You could use a config item marked as secret for this.
pulumi config set -secret mycert “$(cat cert.pem)”
And then you can use a
Config
object to retrieve it as a string.
The dash in secret should be two dashes but iOS won’t let me type that 🙄
c
Let me correct that for you 🙂. Here’s what @stocky-spoon-28903 meant to type
Copy code
pulumi config set --secret mycert "$(cat cert.pem)"
👍 1
o
@stocky-spoon-28903 @clever-sunset-76585 great, thanks much