https://pulumi.com logo
#esc
Title
# esc
d

damp-airline-38442

11/22/2023, 9:19 PM
Hello Pulumi Community! Dropping a line here to announce a blog post about how Pulumi ESC now has better support for Kubernetes tools. Looking forward to seeing how to community takes advantage of ESC to simplify access to Kubernetes clusters. https://www.pulumi.com/blog/esc-kubernetes-cluster-and-app/ Slack Conversation
g

gifted-balloon-26385

12/05/2023, 5:58 PM
hey @damp-airline-38442, I’m trying to use this myself but having an issue. when I run
esc env get <envname>
here’s the definition it gives me, which is copied straight from the blog post
Copy code
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 there
d

damp-airline-38442

12/05/2023, 6:12 PM
Hi @gifted-balloon-26385, I'll try to get an answer for you.
m

microscopic-florist-22719

12/05/2023, 6:14 PM
@gifted-balloon-26385 try
esc env open
d

damp-airline-38442

12/05/2023, 6:14 PM
@gifted-balloon-26385 are you using the
esc open
command? It is when you "open" an environment that the values are rendered.
m

microscopic-florist-22719

12/05/2023, 6:15 PM
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.
g

gifted-balloon-26385

12/05/2023, 6:15 PM
ahhh got it. afk for a sec but will give that a try when i’m back
m

microscopic-florist-22719

12/05/2023, 6:15 PM
sg!
g

gifted-balloon-26385

12/05/2023, 6:38 PM
works! tyvm