This message was deleted.
s
This message was deleted.
l
Environment variables, vaults, parameters, files.. any of the ways you would consider doing it in another program or script.
Pulumi config has support for secrets, which is fine for protecting them from casual glances. Depending on your use case, you may want something that prevents putting even encrypted secrets in source control.
t
Yes, I am trying to avoid to hardcode those secrets in Source Control. So I think the environment variable is the most secure I guess? Since the vault option is not an option for me.
l
Environment variable is easy, flexible and avoids writing the value to storage. Usually a good option.
t
thanks!
l
It also avoids showing the values in the output of
ps
or whatever, while it's running.
t
when pulumi runs, can I output debug info as well? I would just like to output the list of environment variables to the CLI
l
Yes. You can do it via your language's normal outputting / logging APIs, or you can use the log API that Pulumi provides. In typescript, that's
<http://pulumi.log.info|pulumi.log.info>()
,
pulumi.log.error()
, etc.
🙏 1