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

steep-toddler-94095

06/23/2021, 10:49 PM
what's the command for outputting the stack state to the console? i totally forget and google and
--help
isn't being helpful
nvm found it.
pulumi stack export
thought it would be under
pulumi state
or related to
output
l

little-cartoon-10569

06/23/2021, 10:54 PM
pulumi stack
without
export
outputs the summary tree which is often more useful than the details json output of an export.
s

steep-toddler-94095

06/23/2021, 10:55 PM
thanks and totally agree! in this case i needed to modify the state and re-import it. accidentally locked myself out of the EKS cluster and am unable to regain access, even as the creator of the cluster.
l

little-cartoon-10569

06/23/2021, 10:55 PM
Then export is what you want. With the --file option 🙂
👍 1
If you leave out the
--file
(and use redirect) then you get a bit of extra text at the top or bottom, that you have to edit out.
I made that mistake more than once.
s

steep-toddler-94095

06/23/2021, 11:00 PM
good to know, thanks!