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 variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
210: extra_env = local.envbuilder_env
The key "ENVBUILDER_INSECURE" in extra_env overrides an option set on the provider.
Warning: Cannot override required environment variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
210: extra_env = local.envbuilder_env
The key "ENVBUILDER_GIT_URL" in extra_env cannot be overridden.
Warning: Cannot override required environment variable
on main.tf line 210, in resource "envbuilder_cached_image" "cached":
210: extra_env = local.envbuilder_env
The 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