coder_parameter default value for type string is empty
The placeholder for a string parameter suggests that if you leave the field empty, the parameter default will be used. However, what you actually get in the Terraform run is an empty string.
The module dotfiles was recently updated to support a default fallback repo.
module "dotfiles" {
source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.12"
agent_id = coder_agent.example.id
default_dotfiles_uri = "https://github.com/coder/dotfiles"
}
@matifali We're not using this module. I suppose it is relatively easy to work around this issue by falling back to your default value, but it requires you to mention the default URL at least twice in the template and is not intuitive to workspace template developers.
This relates to the provider, and I am moving it to the coder/terraform-provider-coder repo.
cc: @stirby