I am afraid I am using `additionalSecretOutputs` i...
# general
b
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
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