bumpy-laptop-30846
03/04/2021, 11:17 AMawait
can be used in typescript.
How do you use something like aws.iam.User.get
which returns a promise without await in your index.ts
?ancient-megabyte-79588
03/04/2021, 4:27 PMawait
in pulumi examples. What you do see is <resource>.apply()
that returns a pulumi.Output<T>
that the pulumi SDK knows will eventually be filled and everything that depends on the Output will wait for its fulfillment.pulumi.Output<T>
.colossal-australia-65039
03/04/2021, 5:15 PMindex.ts
ancient-megabyte-79588
03/04/2021, 6:41 PMlittle-cartoon-10569
03/04/2021, 8:33 PMpulumi.output
function) then Pulumi will lift properties out of the Output as you need them.aws.iam.User.get()
return a User? Not a Promise...