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

refined-terabyte-65361

08/17/2021, 6:05 PM
Hello, I have pulumi stack in aws s3 how to import it to local ?
b

brash-quill-35776

08/17/2021, 6:13 PM
export it from s3, then use the file to import it to your local
r

refined-terabyte-65361

08/17/2021, 8:18 PM
hi
i downloaded the file how to import it to pulumi ?
b

brash-quill-35776

08/17/2021, 8:19 PM
please check command line help, there is a subcommand
import
r

refined-terabyte-65361

08/17/2021, 8:27 PM
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

brash-quill-35776

08/17/2021, 8:28 PM
don't know about that, it simply works for me
l

little-cartoon-10569

08/17/2021, 9:58 PM
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

brash-quill-35776

08/18/2021, 12:43 AM
that's right
l

little-cartoon-10569

08/18/2021, 12:53 AM
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.
4 Views