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

brave-angle-33257

04/29/2020, 10:54 PM
accidentially
ctrl-c
a running operation, and now can't reimport the state file, but JQ works.. (it's big, 13k lines).. bug ?
Copy code
root@98a0af2021a4:/data/pulumi/infra/aws/mycompany/environment/mycompany-alarms# pulumi stack import < stage
error: could not deserialize deployment: unexpected end of JSON input

root@98a0af2021a4:/data/pulumi/infra/aws/mycompany/environment/mycompany-alarms# cat stage | jq '.version'
3
the state files are in s3 and versioned, this should be the last version before my action today
i've tried a couple other verisons, same thing
i was able to just replace the file in s3 and it's loading.. to me seems like the local import of a big file has an issue
g

gentle-diamond-70147

04/30/2020, 12:45 AM
What was the size of the file?
b

brave-angle-33257

05/01/2020, 7:05 PM
sorry for delayed response, didn't see this.. approx 800-900KB
13k lines in file
e

eager-analyst-8893

07/13/2020, 6:42 PM
@brave-angle-33257 can you help with command to import from s3? same problem =(
b

brave-angle-33257

07/13/2020, 6:44 PM
rather than import it, just upload it to s3 with the changes
❤️ 1
and do a refresh
❤️ 1
e

eager-analyst-8893

07/13/2020, 6:47 PM
thank you soo much! it's working 😂
b

brave-angle-33257

07/13/2020, 6:47 PM
👍
e

eager-analyst-8893

07/13/2020, 6:48 PM
seems like ctrl-c and pulumi incopatible