sparse-intern-71089
06/22/2020, 8:06 AMcolossal-room-15708
06/22/2020, 8:36 AMcolossal-beach-47527
06/22/2020, 7:22 PMpulumi
are you using? (Output of pulumi version
)
As far as the syntax for importing a stack, --file o.txt
should work if the --help
says that is supported. I usually just run:
pulumi stack export > checkpoint.json
# hack
pulumi stack import < checkpoint.json
So that should work, let me know if you still have any issues and I can help troubleshoot.magnificent-airport-52631
06/23/2020, 7:02 PM$ pulumi version
v2.4.0
I could make it done using Windows Powershell
instead of running Pulumi on wsl2 Ubuntu
console.
The problem on wsl2
still occurring.magnificent-airport-52631
06/23/2020, 9:24 PMPowerShell
the problem occurs too:
> pulumi stack export | pulumi stack import
warning: removing pending operation 'updating' on 'urn:pulumi:dev::project::aws:cloudfront/distribution:Distribution::cdn' from snapshot
error: could not import deployment: performing HTTP request: Post "<https://api.pulumi.com/api/stacks/namespace/project/dev/import>": read tcp 192.168.15.4:58422->52.38.45.108:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
magnificent-airport-52631
06/23/2020, 9:25 PMcolossal-beach-47527
06/25/2020, 8:30 PMpulumi stack import
when running Windows PowerShell (ps.exe
?) when on wsl2 Ubuntu
, right? That error message makes it look like there is a networking problem contacting https://api.pulumi.com, but if you can successfully do so in some other environment/VM on your machine… then the best guess I have is that it could be related to the certificates available and/or if HTTP proxying is setup or something.
As a brief sanity check, you could run curl
to make sure you can contact the service:
% curl <https://api.pulumi.com/api/user>
{"code":401,"message":"Unauthorized: No credentials provided or are invalid."}
If this persists, please do file an issue on github.com/pulumi/pulumi and we can take a closer look. This does seem odd.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by