You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error with 2.1.1 when planning workspace: coder_parameter names must be unique #9260
"recv workspace provision: plan terraform: coder_parameter names must be unique but "cpu", "docker_image", "memory", "nix_volume_size" and "provider" appear multiple times"
I don't think that we introduced any major changes between 2.1.0 and 2.1.1, see changelog, unless it is #9201.
Could you please prepare a small sample template without extra providers/resources to present the problem? Right now if it complains about lack of credentials for AWS and Fly.io.
data "coder_parameter" "cpu" {
name = "cpu"
display_name = "CPU"
description = "The number of CPUs to allocate to the workspace"
type = "number"
default = "4"
icon = "https://raw.githubusercontent.com/matifali/logos/main/cpu-3.svg"
mutable = true
validation {
min = 4
max = 16
}
}
data "coder_parameter" "memory" {
name = "memory"
display_name = "Memory"
description = "The amount of memory to allocate to the workspace in GB"
type = "number"
default = "8"
icon = "/icon/memory.svg"
mutable = true
validation {
min = 8
max = 64
}
}
Activity
mtojek commentedon Aug 23, 2023
I don't think that we introduced any major changes between 2.1.0 and 2.1.1, see changelog, unless it is #9201.
Could you please prepare a small sample template without extra providers/resources to present the problem? Right now if it complains about lack of credentials for AWS and Fly.io.
mtojek commentedon Aug 23, 2023
Ok, I looked around and managed to reproduce it. Unfortunately, it is the outcome of #9201.
Terraform provider fails the use case with a module. For instance:
main.tf:
./mod/terraform-coder-defn-dev/coder.tf
...
./mod/terraform-coder-defn-dev/params.tf
@ammario should we revert #9201 temporarily?
Amanibhavam commentedon Aug 23, 2023
@mtojek Thanks for the fix! Next time I'll make smaller repros without creds.