Hello, I have pulumi stack in aws s3 how to impor...
# general
r
Hello, I have pulumi stack in aws s3 how to import it to local ?
b
export it from s3, then use the file to import it to your local
r
hi
i downloaded the file how to import it to pulumi ?
b
please check command line help, there is a subcommand
import
r
i tried to import but i am getting this error error: could not deserialize deployment: unexpected end of JSON input
tried with multiple stack files all are having same issue
b
don't know about that, it simply works for me
l
How did you download it? You should use
pulumi stack export --file x.json
or similar to get it. This file should be compativle with
pulumi stack import --file x.json
.
b
that's right
l
You may have to look in the exported file for oddnesses. Maybe you moved it between systems in a way that cause line-ending issues? Or there's UTF characters and the file is being processed by something that handles only ASCII? Eyeballing it may reveal the problem.