hi All, I would like to build pulumi state file fr...
# general
m
hi All, I would like to build pulumi state file from the pulumi history file. did any one attempted this? if so could you pl. share the steps. I know below are two commands to find out revision and export stack state to json. i) to know history -> pulumi stack history ( supposed to show the revision number but i am not seeing it when i run the cmd ) ii) to export the state -> pulumi stack export --revision <revision_number> > mystate.json how can I find out the revision number from pulumi stack history? Appreciate any help/pointers in this regard. Thankyou.
b
what state backend are you using?
m
azure storage
not using the managed one.
b
self managed backends don’t keep checkpoint files. If you don’t have blob versioning enabled, the history has gone
m
Seems blob versioning is enabled, am able to see checkpoint fies. How can i build state from checkpoint file? Any idea?
b
yes, grab checkpoint and
pulumi stack import --file <path>
m
Ok. great. thank you. Let me try
getting error ->could not deserialize deployment: unexpected end of JSON input