clever-plumber-29709
03/12/2021, 8:40 PMpulumi.stack.yml
config:
proj:data:
services:
foo: bar
priv:
secure: AAABAB+T(...)sEmx8=
__main__.py
import pulumi
conf = pulumi_config.require_object("data")
This conf, is a dict, but pulumi correctly recognizes that inside there is a secret. if i print it shows:
{'foo': 'bar', 'priv': '[secret]'}
So i want to iterate over this dic, and do something on the secrets, but i'm not sure how to know. python thinks it is a str.
print(conf["services"]["priv"])
print(type(conf["services"]["priv"]))
[secret]
<class 'str'>
red-match-15116
03/12/2021, 8:59 PMrequire_secret_object
? Linkclever-plumber-29709
03/12/2021, 9:38 PMconf
as a secret object. But if i do that, i cant iterate over it, and all keys say true to .is_secret()
red-match-15116
03/13/2021, 7:31 PM