Hi all, is it possible to create a secret from fil...
# general
f
Hi all, is it possible to create a secret from file, or alternatively a multiline secret? I need to create a secret that is the result of the command
openssl rand -base64 128
b
It should definitely be possible, but I think how to do this depends on the provider. What’s the secret from? kubernetes, aws, gcp, …? Can you generate the secret once and stick it (encrypted) in the config with
pulumi config set --secret <name> <value>
?
oh. do you mean adding a secret to your config?
f
It seems to have worked with
pulumi config set --secret metallb-secretKey "$(openssl rand -base64 128)"
🙂
b
nice!
pulumi config set
also accepts data from stdin if you don’t pass a
value
so
openssl rand -base64 128 | pulumi config set --secret metallb-secretKey
should also work
f
Oh nice to know, thanks! 🙂