big-engineer-7107506/17/2022, 2:42 PM
: I need to run a query against a database to determine what needs to be done in the rest of the pulumi script. I want to store the password for the database connection as a secret (
). I notice that if I set a config value with
pulumi config set --secret db_password ...
and then retrieve it with
, I can't use the returned object to connect to the database, I get a type error:
But if I retrieve the value using just
TypeError: <pulumi.output.Output object at 0x10feb3df0> has type Output, but expected one of: bytes, unicode
, then it works fine. So I'm a little confused about why I would use
. What's the difference? What's going on here?
few-diamond-6862606/20/2022, 2:30 PM
big-engineer-7107506/20/2022, 2:39 PM