great-evening-28439
03/25/2021, 11:02 PMpulumi up
. However it happened, one of my stacks is just no longer there when I pulumi stack ls
. My state is stored in an s3 bucket so there are many days worth of backups for this state, but I can’t seem to figure out how to import those json backup files into a new state. So I guess my question how do I use checkpoint files to recreate the stack that was deleted? By “checkpoint” files I mean the ones that start like this…{
"version": 3,
"checkpoint": {
"stack": "k8s.prod",
"latest": {
"manifest": {
"time": "2021-03-23T20:21:39.663781-04:00",
"magic": "b440e717c6cef8e29267ff18679a2b8540b8fbf85b537601c23feda7afb386ab",
"version": "v2.23.1"
},
pulumi import --file ./k8s.prod-1616545302453665000.checkpoint.json
orange-secretary-87364
03/25/2021, 11:26 PMpulumi stack import ...
great-evening-28439
03/25/2021, 11:28 PMpulumi stack import
. The Python script in the linked issue worked for me though.damp-school-17708
03/26/2021, 8:52 AM