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

fresh-hospital-81544

06/09/2021, 1:38 AM
hi. my internet just cut out during pulumi up and now my stack cant be found. How to recover?
when I run pulumi up it shows
Copy code
Please choose a stack, or create a new one:  [Use arrows to move, enter to select, type to filter]
> global-staging
  infra-staging
  <create a new stack>
and the stack I need is
customer-staging
s

steep-toddler-94095

06/09/2021, 1:56 AM
hmm what backend are you using
f

fresh-hospital-81544

06/09/2021, 1:56 AM
s3
s

steep-toddler-94095

06/09/2021, 1:57 AM
if you look in the
./pulumi/stacks
dir, there should be a
<stackname>.json.bak
file. it's a backup state file. let me know if you've found it
f

fresh-hospital-81544

06/09/2021, 1:59 AM
found it. should i just copy to
<stackname>.json
s

steep-toddler-94095

06/09/2021, 1:59 AM
yeah
f

fresh-hospital-81544

06/09/2021, 2:02 AM
Looks good -- awesome. Thank you!
s

steep-toddler-94095

06/09/2021, 2:02 AM
np!