sparse-intern-71089
11/05/2020, 7:31 PMmammoth-caravan-51104
11/05/2020, 7:32 PMcertificateArn:
expects OutputInstance, not Output.. i'm lost..little-cartoon-10569
11/05/2020, 7:33 PMdeclare module '@pulumi/pulumi' {
export interface OutputInstance<T> {
promise(withUnknowns?: boolean): Promise<T>;
}
}
green-school-95910
11/05/2020, 7:33 PMOutput
objects wraps values that might be unknown when your code is executing, there is nothing to await there.little-cartoon-10569
11/05/2020, 7:33 PMlittle-cartoon-10569
11/05/2020, 7:34 PMgreen-school-95910
11/05/2020, 7:34 PMlittle-cartoon-10569
11/05/2020, 7:34 PMlittle-cartoon-10569
11/05/2020, 7:36 PMgreen-school-95910
11/05/2020, 7:39 PMcertificateArn
from?mammoth-caravan-51104
11/05/2020, 7:52 PMpulumi.Input<string>
. for whatever reason i am getting wrong types suggestions in my editor... but when i run the program, all good!green-school-95910
11/05/2020, 7:56 PMOutput<string>
or a Promise<string>
How did you get that?green-school-95910
11/05/2020, 7:58 PMOutput<string>
that it resolves to or pass that to pulumi.output
to put another Output
around it. It will cascade through the Promise
and the inner Output
mammoth-caravan-51104
11/06/2020, 10:09 AMaws.route53.getZone
returning a promise. based on that i built some async functions that were supposed to be returning promises as well. so i ended up wrapping output results in promises.. right now i refactored the code, so it's just handling this one getZone
promise without the need to create async functions. now i'm simply returning pulumi outputs from my functions and all is good!