loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.67k stars 322 forks source link

Adding AWS Provider throws fatal error "not found, exit status 127" #1155

Open sowhatdoido opened 2 months ago

sowhatdoido commented 2 months ago

What happened?
When running devpod provider add aws --debug, a fatal error is thrown.

What did you expect to happen instead?
AWS provider to be added properly

Local Environment:

DevPod Provider:

Anything else we need to know?

$ devpod provider add aws --debug
14:03:01 done Successfully installed provider aws
14:03:02 debug Run init provider command: ${AWS_PROVIDER} init
14:03:02 error not found
14:03:02 fatal exit status 127
init
github.com/loft-sh/devpod/cmd/provider.initProvider
        D:/a/devpod/devpod/cmd/provider/use.go:191
github.com/loft-sh/devpod/cmd/provider.setOptions
        D:/a/devpod/devpod/cmd/provider/use.go:164
github.com/loft-sh/devpod/cmd/provider.ConfigureProvider
        D:/a/devpod/devpod/cmd/provider/use.go:99
github.com/loft-sh/devpod/cmd/provider.(*AddCmd).Run
        D:/a/devpod/devpod/cmd/provider/add.go:96
github.com/loft-sh/devpod/cmd/provider.NewAddCmd.func2
        D:/a/devpod/devpod/cmd/provider/add.go:51
github.com/spf13/cobra.(*Command).execute
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:983
github.com/spf13/cobra.(*Command).ExecuteC
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1115
github.com/spf13/cobra.(*Command).Execute
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1039
github.com/loft-sh/devpod/cmd.Execute
        D:/a/devpod/devpod/cmd/root.go:90
main.main
        D:/a/devpod/devpod/main.go:6
runtime.main
        C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.2.windows-amd64/src/runtime/proc.go:271
runtime.goexit
        C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.2.windows-amd64/src/runtime/asm_amd64.s:1695
configure provider
github.com/loft-sh/devpod/cmd/provider.(*AddCmd).Run
        D:/a/devpod/devpod/cmd/provider/add.go:108
github.com/loft-sh/devpod/cmd/provider.NewAddCmd.func2
        D:/a/devpod/devpod/cmd/provider/add.go:51
github.com/spf13/cobra.(*Command).execute
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:983
github.com/spf13/cobra.(*Command).ExecuteC
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1115
github.com/spf13/cobra.(*Command).Execute
        D:/a/devpod/devpod/vendor/github.com/spf13/cobra/command.go:1039
github.com/loft-sh/devpod/cmd.Execute
        D:/a/devpod/devpod/cmd/root.go:90
main.main
        D:/a/devpod/devpod/main.go:6
runtime.main
        C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.2.windows-amd64/src/runtime/proc.go:271
runtime.goexit
        C:/Users/runneradmin/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.2.windows-amd64/src/runtime/asm_amd64.s:1695
pascalbreuninger commented 2 months ago

Hi @sowhatdoido, thanks for reporting the issue. Is the AWS cli installed and in your PATH?

Waannaabbee commented 2 months ago

Why so rude

sowhatdoido commented 2 months ago

Hi @sowhatdoido, thanks for reporting the issue. Is the AWS cli installed and in your PATH?

AWS is installed, I don't see it in my path but where aws

C:\Users\sowhatdoido\AppData\Local\Programs\Python\Python39-32\Scripts\aws
C:\Users\sowhatdoido\AppData\Local\Programs\Python\Python39-32\Scripts\aws.cmd
C:\Program Files\Amazon\AWSCLIV2\aws.exe

and devpod is installed, PATH has C:\Users\sowhatdoido\AppData\Roaming\sh.loft.devpod\bin and where devpod returns

C:\Users\sowhatdoido\AppData\Roaming\sh.loft.devpod\bin\devpod
C:\Users\sowhatdoido\AppData\Roaming\sh.loft.devpod\bin\devpod.cmd