modern-eve-91943
06/30/2023, 2:20 PMbillowy-army-68599
modern-eve-91943
06/30/2023, 4:08 PMone
and two
In service two
ts file I use the following code to reference service `one`:
import { OneService } from "../../shared/infra/outputs";
import * as pulumi from "@pulumi/pulumi";
const oneStack = new pulumi.StackReference(`company/two/${config.environment}`); //this line throws the error
const oneStackService = oneStack.getOutput("oneService").apply(s => s as OneService);
... //use extracted value to save in app settings of service two
Service two
doesn't have any stack references at all.
If I use the same code in another service, e.g. service three
, it works finebillowy-army-68599
import { OneService}
include a stack reference?modern-eve-91943
06/30/2023, 4:47 PM../../shared/infra/outputs
is a file with interfacesacceptable-intern-25844
06/30/2023, 5:12 PMnew StackReference
oneStack.getOutput("oneService").apply(s => s as OneService);
use StackReference.getOutputDetails
modern-eve-91943
07/03/2023, 9:51 AM