limited-army-96747
12/21/2021, 2:14 PMCalling [toJSON] on an [Output<T>] is not supported. To get the value of an Output as a JSON value or JSON string consider either: 1: o.apply(v => v.toJSON()) 2: o.apply(v => JSON.stringify(v)) See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.
great-sunset-355
12/21/2021, 2:31 PMxxx = pulumi.Output.fromInput(
{
AURORA_USERNAME: rdsUsername,
AURORA_PASSWORD: rdsPassword
}
).apply(JSON.stringify)
Then you should be able to pass xxx
to secretString
limited-army-96747
12/21/2021, 2:36 PMindex.ts(651,35): error TS2339: Property 'fromInput' does not exist on type 'OutputConstructor'.
great-sunset-355
12/21/2021, 2:43 PM"""
Takes an Input value and produces an Output value from it, deeply unwrapping nested Input values through nested
lists, dicts, and input classes. Nested objects of other types (including Resources) are not deeply unwrapped.
:param Input[T_co] val: An Input to be converted to an Output.
:return: A deeply-unwrapped Output that is guaranteed to not contain any Input values.
:rtype: Output[T_co]
"""
You should find TS equivalent here: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#Inputlimited-army-96747
12/21/2021, 2:44 PMconst auroraCreds = pulumi.all([rdsUsername.result, rdsPassword.result])
.apply(([username, password]) => {
JSON.stringify({ AURORA_USERNAME: username, AURORA_PASSWORD: password })
})
great-sunset-355
12/21/2021, 2:56 PMapply()