gorgeous-country-43026
09/07/2022, 8:58 AMgcp.container.getCluster
and proceed from there to get the ingress. I do not see however an immediate logical way to proceed to get the ingress object and its IP via this route
3. Bind the domain on project B cluster definition via its dnsConfig
attribute but I think this won't work and would only work on the same project?
4. Bite the bullet and just do copy-pasting over. Not happy if I have to do this but might be the only reasonable choiceconst project = pulumi.output(gcp.projects.getProject({ filter: "name:project-with-state-name" }));
const stackStateContent = project.apply(project => new storage.Storage({
projectId: project.id
})).apply(stor => stor
.bucket("pulumi-state")
.file("rootFolderName/.pulumi/stacks/stackname.json")
.download())
.apply(downloadResult => JSON.parse(downloadResult.toString()));
const ingressIp = liveDevStackStateContent.apply(stackState => {
const resources : Array<any> = stackState.checkpoint.latest.resources;
const ingressResource = resources.find((res : any) => res.id === "web/web-ingress");
const ip : string = ingressResource.outputs.status.loadBalancer.ingress[0].ip;
return ip;
});