I am trying to get the unencrypted config (secret)...
# python
v
I am trying to get the unencrypted config (secret) with python. Can someone tell me how to fix this?
Copy code
value = stack.get_config(key)
  if value.secret:
    print(auto.ConfigValue(value=value, secret=True).value)
e
I think just:
Copy code
value = stack.get_config(key)
  if value.secret:
    print(value.value)
v
that returns '[secret]'
The value is encrypted. can't figure out how to get the decrypted value.
e
oh raise an issue, I think this must be a bug in auto-api I don't see the --show-secrets flag exposed anywhere
v
for now I think I can run subprocess of pulumi cli to get the value.