sparse-intern-71089
10/04/2021, 3:59 PMbillowy-army-68599
apply
?most-lighter-95902
10/04/2021, 4:42 PM.apply(x => console.log(x)
) but I can’t seem to extract the value (i.e. pgContainer.networkDatas[0].gateway.apply(x => x)
has the type Output<T> and the apiContainer won’t create because it errors out)ancient-policeman-24615
10/05/2021, 11:24 PMimport * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
const pgContainer = new docker.Container("postgres-container", {
image: "pg-image",
});
const apiContainer = new docker.Container("api-container", {
image: "api-image",
envs: [pulumi.interpolate`DB_HOST=${pgContainer.networkDatas[0].gateway}`],
});