shy-dentist-79386
08/16/2022, 9:58 PMbillowy-army-68599
miniature-musician-31262
08/16/2022, 10:02 PMresult
property: https://www.pulumi.com/registry/packages/random/api-docs/randompassword/#result_nodejspulumi.Output<string>
, though, so depending on what you’re trying to do with the value, you might need to use the apply()
method to get at it — for example:
const password = new random.RandomPassword("password", {
length: 16,
special: true,
overrideSpecial: `_%@`,
});
password.result.apply(unwrapped => console.log({ unwrapped }));
password.result
to that resource, as in the example on that page (to @billowy-army-68599’s point):
const example = new aws.rds.Instance("example", {
instanceClass: "db.t3.micro",
allocatedStorage: 64,
engine: "mysql",
username: "someone",
password: password.result,
});
pulumi.Input
and pulumi.Output
is available in the docs: https://www.pulumi.com/docs/intro/concepts/inputs-outputs/shy-dentist-79386
08/16/2022, 10:07 PMminiature-musician-31262
08/16/2022, 10:08 PMapply
should get you the raw string.shy-dentist-79386
08/16/2022, 10:08 PMminiature-musician-31262
08/16/2022, 10:10 PMRandomPassword
resource, the value is stored encrypted as well, so you’ll pretty much need to run Pulumi to get at it.shy-dentist-79386
08/16/2022, 10:13 PMminiature-musician-31262
08/16/2022, 10:20 PMshy-dentist-79386
08/16/2022, 10:22 PM