We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Plan / Apply crashes when tfvar is specified through the CLI
** TofuTF Version** 0.9.1
To Reproduce Run workspace using -var=name=value
Expected behavior plan and apply to work correctly
Error: https://github.com/tofutf/tofutf/blob/main/internal/run/tfe.go#L85-L87
2024-05-20 21:09:55.189 2024/05/20 20:09:55 DEBUG created configuration version id=cv-vMEfTJs79WwEmT7m subject="VETRO Platform" 2024-05-20 21:08:33.547 2024-05-20 21:08:33.547 net/http/server.go:3285 +0x4b4 2024-05-20 21:08:33.547 created by net/http.(*Server).Serve in goroutine 149 2024-05-20 21:08:33.547 net/http/server.go:2039 +0x5e8 2024-05-20 21:08:33.547 net/http.(*conn).serve(0xc014bf3680, {0x1ae53f8, 0xc014da2a20}) 2024-05-20 21:08:33.547 net/http/server.go:3137 +0x8e 2024-05-20 21:08:33.547 net/http.serverHandler.ServeHTTP({0x1ade2a0?}, {0x1ae22d0?, 0xc0145bf5e0?}, 0x6?) 2024-05-20 21:08:33.547 github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1e2 2024-05-20 21:08:33.547 github.com/gorilla/mux.(*Router).ServeHTTP(0xc0147fda40, {0x1ae22d0, 0xc0145bf5e0}, 0xc0141d1440) 2024-05-20 21:08:33.547 github.com/gorilla/handlers@v1.5.1/recovery.go:78 +0xd9 2024-05-20 21:08:33.547 github.com/gorilla/handlers.recoveryHandler.ServeHTTP({{0x1ad58c0, 0xc0145b32a8}, {0x0, 0x0}, 0x1}, {0x1ae22d0?, 0xc0145bf5e0?}, 0x1aca068?) 2024-05-20 21:08:33.547 net/http/server.go:2166 +0x29 2024-05-20 21:08:33.547 net/http.HandlerFunc.ServeHTTP(0x7fa910f675b8?, {0x1ae22d0?, 0xc0145bf5e0?}, 0x151558c0?) 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/http/server.go:105 +0x12e 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/http.NewServer.func3.1({0x1ae22d0, 0xc0145bf5e0}, 0xc0141d1680) 2024-05-20 21:08:33.547 net/http/server.go:2166 +0x29 2024-05-20 21:08:33.547 net/http.HandlerFunc.ServeHTTP(0x1ae53f8?, {0x1ae22d0?, 0xc0145bf5e0?}, 0x1ad2270?) 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/tokens/middleware.go:116 +0x302 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/tokens.NewService.newMiddleware.func1.1({0x1ae22d0, 0xc0145bf5e0}, 0xc0141d17a0) 2024-05-20 21:08:33.547 net/http/server.go:2166 +0x29 2024-05-20 21:08:33.547 net/http.HandlerFunc.ServeHTTP(0xc0141d17a0?, {0x1ae22d0?, 0xc0145bf5e0?}, 0xc0002529a0?) 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/tfeapi/api.go:60 +0x1d7 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/tfeapi.(*Handlers).AddHandlers.func2.1({0x1ae22d0, 0xc0145bf5e0}, 0xc014d1b200) 2024-05-20 21:08:33.547 net/http/server.go:2166 +0x29 2024-05-20 21:08:33.547 net/http.HandlerFunc.ServeHTTP(0x16d4d00?, {0x1ae22d0?, 0xc0145bf5e0?}, 0xf?) 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/run/tfe.go:86 +0x2e9 2024-05-20 21:08:33.547 github.com/tofutf/tofutf/internal/run.(*tfe).createRun(0xc000d286c0, {0x1ae22d0, 0xc0145bf5e0}, 0xc014d1b200) 2024-05-20 21:08:33.547 runtime/panic.go:770 +0x132 2024-05-20 21:08:33.547 panic({0x156d740?, 0x2605720?}) 2024-05-20 21:08:33.547 github.com/gorilla/handlers@v1.5.1/recovery.go:74 +0xbe 2024-05-20 21:08:33.547 github.com/gorilla/handlers.recoveryHandler.ServeHTTP.func1() 2024-05-20 21:08:33.547 github.com/gorilla/handlers@v1.5.1/recovery.go:89 +0xb8 2024-05-20 21:08:33.547 github.com/gorilla/handlers.recoveryHandler.log({{0x1ad58c0, 0xc0145b32a8}, {0x0, 0x0}, 0x1}, {0xc015770e80?, 0xc0175ef340?, 0xc00aceb458?}) 2024-05-20 21:08:33.547 runtime/debug/stack.go:24 +0x5e 2024-05-20 21:08:33.547 runtime/debug.Stack()
The text was updated successfully, but these errors were encountered:
Adding to this that if I instead use an auto.tfvars file, it all works just fine
Sorry, something went wrong.
Huh. Interesting. I will take a look at this today.
No branches or pull requests
Describe the bug
Plan / Apply crashes when tfvar is specified through the CLI
** TofuTF Version**
0.9.1
To Reproduce
Run workspace using -var=name=value
Expected behavior
plan and apply to work correctly
Error: https://github.com/tofutf/tofutf/blob/main/internal/run/tfe.go#L85-L87
The text was updated successfully, but these errors were encountered: