https://pulumi.com logo
#general
Title
# general
q

quaint-artist-58613

11/28/2019, 10:09 AM
Hey friends,
Copy code
import * as k8s from "@pulumi/kubernetes";
import * as pulumi from "@pulumi/pulumi";
const env = pulumi.getStack();
const infra_stack = new pulumi.StackReference(`acmecorp/infra/${env}`);
const provider = new k8s.Provider("k8s", { kubeconfig: infra.getOutput("kubeConfig") });
const service = new k8s.core.v1.Service(..., { provider: provider });
If infra_stack is deployed in aws account A and current stack is deployed in aws account B, does the code snippet still work?🙂