https://pulumi.com logo
#general
Title
# general
b

bitter-island-28909

12/02/2019, 5:36 PM
I am afraid I am using
additionalSecretOutputs
incorrectly, although I could have sworn this used to work:
Copy code
let pw = new random.RandomString("test-password", {
    length: 8,
    special: false,
    additionalSecretOutputs: ["result", "id"]
});

let param = new aws.ssm.Parameter("test-password", {
    length: 8,
    value: pw.result,
    type: "SecureString"
});
Expectation: The value of the RandomString and SSM parameter are not visible in plaintext in the stack state and web console. Actual: The plaintext is visible in the stack state and web console.
And, as usual, as soon as I post a question, I see the answer.
additionalSecretOutputs
is an option, not a property 🙂
👍 1
w

white-balloon-205

12/02/2019, 5:51 PM
Note that you may also want to use
RandomPassword
instead. It is the same as random string, but doesn’t expose the generated string in the id.
💯 1