https://pulumi.com logo
Title
f

full-island-88669

07/12/2021, 7:50 AM
Hi! How may I get AccessKey.encrypted_secret output? Now it is shown as
aws_secret_access_key: output<string>
f

fresh-hospital-81544

07/12/2021, 8:15 AM
--show-secrets
or something I think. Cannot find the docs for it right now though
b

brave-planet-10645

07/12/2021, 8:39 AM
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

full-island-88669

07/12/2021, 10:28 AM
thanks
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

brave-planet-10645

07/12/2021, 10:57 AM
Have you run
pulumi up
successfully? Does
fh_access_key.encrypted_secret
have a value?
f

full-island-88669

07/12/2021, 11:06 AM
yes
I did
when up - it is shown as + aws_secret_access_key: output<string>
b

brave-planet-10645

07/12/2021, 1:08 PM
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

full-island-88669

07/14/2021, 3:09 PM
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

brave-planet-10645

07/15/2021, 9:40 AM
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