tall-crowd-93084
11/05/2022, 5:01 PM.env
file alongside docker compose. I would like those passwords to be securely stored in the state, but I don't really want to have to run a bunch of pulumi config set --secret
commands, or generate those as a manual step. I'd also like to be able to look those values up when needed.
What's my best option/architectural pattern to do this in pulumi?miniature-king-36473
11/05/2022, 5:05 PMtall-crowd-93084
11/05/2022, 5:09 PMminiature-king-36473
11/05/2022, 5:16 PMtall-crowd-93084
11/05/2022, 5:17 PM--show-secrets
of one part of the state?miniature-king-36473
11/05/2022, 5:21 PMconst password = new random.RandomPassword("password", {...})
// can just reference the generated password in code.
password.generated
tall-crowd-93084
11/05/2022, 5:22 PMminiature-king-36473
11/05/2022, 5:26 PMpulumi stack --show-secrets output [password-name]
tall-crowd-93084
11/05/2022, 5:27 PMpulumi stack output --show-secrets -j | jq ".secrets.hasura"
perfect 🙂