This message was deleted.
# general
s
This message was deleted.
e
stack init
to create a new stack first.
j
Thanks. I still have some issue with the state file:
Copy code
➜  sandbox git:(main) βœ— pulumi stack import --stack eba --file eba.json
error: could not deserialize deployment: unexpected end of JSON input
File looks valid to me (I double checked it with Go).
e
How did you check its valid?
j
I have a tool in Go for checking json.
I think it’s working now. I added local storage for the state file:
Copy code
pulumi login file:///...
and I copied file there (without using import):
Copy code
cp state.json state/.pulumi/stacks/eba.json
and now I see stack and resources.
e
hmm odd that import didn't like it, I thought the format written by filestate would match what import expected
but glad something worked out
j
According to the documentation it should work πŸ˜• So no idea why I run into this. At least the same file works fine when I move it to the new stack directory πŸ™‚