what's the command for outputting the stack state ...
# general
s
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
pulumi stack
without
export
outputs the summary tree which is often more useful than the details json output of an export.
s
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
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
good to know, thanks!