- Notifications
You must be signed in to change notification settings - Fork926
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Filing in coder/coder since it is an example template, versus filing in coder/envbuilder.
Warning messages appear in the Terraform build logs
Upon inspection of the template, the following variables are defined both in the envbuilder provider and as local:
git_url
cache_repo
insecure
Removing the entries from the local, eliminated the warnings. If tried to put git_url and cache_repo as locals, the build failed saying both are required in the provider.
Relevant Log Output
Warning: Overriding provider environment variableon main.tf line 210,in resource"envbuilder_cached_image""cached": 210: extra_env = local.envbuilder_envThe key"ENVBUILDER_INSECURE"in extra_env overrides an optionset on the provider.Warning: Cannot override required environment variableon main.tf line 210,in resource"envbuilder_cached_image""cached": 210: extra_env = local.envbuilder_envThe key"ENVBUILDER_GIT_URL"in extra_env cannot be overridden.Warning: Cannot override required environment variableon main.tf line 210,in resource"envbuilder_cached_image""cached": 210: extra_env = local.envbuilder_envThe key"ENVBUILDER_CACHE_REPO"in extra_env cannot be overridden.
Expected Behavior
No warnings about the envbuilder provider
Steps to Reproduce
- Use the example kubernetes-devcontainer template in Coder
- Populate required variables and coder_parameters and create a workspace
- See Terraform build log warnings
Environment
- Host OS: Sequoia 15.5
- Coder version: 2.22.1
Additional Context
No response