Coder.comC
Coder.com15mo ago
9 replies
Andrej

Error when building workspace with parametrized OpenStack provider using coder parameters

Hi, when I use coder parameters to parametrize OpenStack provider like this:
provider "openstack" {
  application_credential_id = data.coder_parameter.application_credential_id.value
  application_credential_name = data.coder_parameter.application_credential_name.value
  application_credential_secret = data.coder_parameter.application_credential_secret.value
...

and then i do

data "openstack_images_image_v2" "nodes_image" {
  name = "ubuntu-jammy-x86_64"
}

I am getting

Error creating OpenStack image client: You must provide a password to authenticate on .terraform/modules/kubernetes_infra/instances.tf line 1
I don't know if this is right place to discuss this issue, but this behavior is happening only in coder. when i parametrize provider with standard variables, terraform plan is already expecting variables to be filled.

Any idea how to bypass this issue? When providing the values directly everything works.
Was this page helpful?