Hi! How may I get AccessKey.encrypted_secret outpu...
# general
f
Hi! How may I get AccessKey.encrypted_secret output? Now it is shown as
aws_secret_access_key: output<string>
f
--show-secrets
or something I think. Cannot find the docs for it right now though
b
If you access it from the command line it's
pulumi stack output {output name} --show-secrets
If you access it within your code in the same stack, Pulumi will decrypt it for you
f
thanks
Copy code
pulumi.export("aws_secret_access_key", fh_access_key.encrypted_secret)
error: current stack does not have output property 'aws_secret_access_key'
@brave-planet-10645 it doesn't worrk
b
Have you run
pulumi up
successfully? Does
fh_access_key.encrypted_secret
have a value?
f
yes
I did
when up - it is shown as + aws_secret_access_key: output<string>
b
Oh, I understand your question now. It's not a secret, but you want it to be a secret?
what language are you using?
f
I think it is a secret as it's private key
actually, I use Python, but it doesn't really matter in this case as it should work for every language supported by Pulumi
b
So looking at the rest of the output from the AccessKey resource, I think that you'll just need the
secret
output. I suspect that the
encrypted_secret
output is a hangover from TF whereas because we have our own way of handing secrets we don't need it