damp-airline-38442
11/22/2023, 9:19 PMgifted-balloon-26385
12/05/2023, 5:58 PMesc env get <envname>
here’s the definition it gives me, which is copied straight from the blog post
stacks:
fn::open::pulumi-stacks:
stacks:
eks-cluster:
stack: infrastructure/prod
kubeconfig: {'fn::toJSON': "${stacks.eks-cluster.kubeconfig}"}
but in the output section, kubeconfig
and stacks
are both null
but kubeconfig
def exists in infrastructure/prod
, I just quadruple checked by doing cd infrastructure; pulumi stack select prod; pulumi stack output kubeconfig
and it is indeed theredamp-airline-38442
12/05/2023, 6:12 PMmicroscopic-florist-22719
esc env open
damp-airline-38442
12/05/2023, 6:14 PMesc open
command? It is when you "open" an environment that the values are rendered.microscopic-florist-22719
esc env get
only provides a preview of the environment--it doesn't evaluate any of the fn::open
calls--so the values it produces are incomplete.gifted-balloon-26385
12/05/2023, 6:15 PMmicroscopic-florist-22719
gifted-balloon-26385
12/05/2023, 6:38 PM