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

early-musician-41645

05/21/2019, 9:37 PM
How do I import an
eks.Cluster
provider using a
StackReference
? I'd like to create a new namespace in a cluster, but the namespace creation is in a separate stack from the one where the cluster is defined/created
I've exported both the provider and the kubeconfig, in case that helps
found it:
Copy code
const clusterStack = new pulumi.StackReference(clusterStackName);
const k8sProvider  = new k8s.Provider("k8s", { kubeconfig: clusterStack.getOutput("kubeconfig").apply(JSON.stringify) });