Open thiskevinwang opened 2 years ago
Hey @thiskevinwang! I've noticed this too, sometimes the dynamic config sourcer plugin ends up failing in the runner log which doesn't end up surfacing to the CLI, only that the dynamic var was unset. If you have the runner log handy, could you share that too? It might have the actual log for what the TFC lookup failed. Thank you!
@briancain - I was able to reproduce this fairly easily with a fresh server install on K8s! Here's the gist and a snippet:
2022-08-15T23:03:52.568Z [WARN] waypoint.runner.agent.runner.watchloop: error configuring config source:
job_id=01GAHVZE666A9XDGWMCVM3F9CY
job_op=*gen.Job_Up
source=terraform-cloud
err="<nil>: Missing required argument; The argument "token" is required, but was not set."
@thiskevinwang thank you! That error makes sense, I think you must need to set the token
var to access your terraform cloud data? https://tip.waypointproject.io/plugins/terraform-cloud#token
When the runner tried to evaluate that dynamic config sourcer plugin and fails, we should fail the job, rather than warn log and skip resolving the variable as it appears that we're doing now.
This needs to be a noisier failure: https://github.com/hashicorp/waypoint/blob/d6194c5451b90c79fc7e3cebdd35f66a8314f2f5/internal/appconfig/watcher.go#L735
Describe the bug
When using a variable with
dynamic("terraform-cloud"...
,waypoint up
fails and says that no default value was set for the variable.Steps to Reproduce
waypoint up -local=false
Expected behavior
A helpful/actionable Console UI output would be a nice improvement
Waypoint Platform Versions
Additional context
N/A