ripe-cat-40820
01/03/2023, 3:47 PMpulumi
and I have a question about javascript usage:
// 1.
const image = new docker.Image(...) // promise ?
// 2.
const service = new gcp.cloudrun.Service(, { // promise too
...
image: image.imageName,
...
})
I guess 1. new docker.Image
returns a promise, but how 2. await
for it ?billowy-army-68599
01/03/2023, 3:51 PMOutput
which is promise like
Why do you want to await it?ripe-cat-40820
01/03/2023, 3:58 PMvictorious-church-57397
01/03/2023, 5:23 PMripe-cat-40820
01/04/2023, 12:15 AMPulumi automatically captures dependencies when you pass an output from one resource as an input to another resource.https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#:~:text=pulumi%20automatically%20captures%20dependencies%20when%20you%20pass%20an%20output%20from%20one%20resource%20as%20an%20input%20to%20another%20resource.
billowy-army-68599
01/04/2023, 4:29 AM