diff --git a/examples/resources/coder_parameter/resource.tf b/examples/resources/coder_parameter/resource.tf index d23afc5f..ea2a3e47 100644 --- a/examples/resources/coder_parameter/resource.tf +++ b/examples/resources/coder_parameter/resource.tf @@ -17,6 +17,10 @@ data "coder_parameter" "example" { data "coder_parameter" "ami" { name = "Machine Image" + description = <<-EOT + # Provide the machine image + See the [registry](https://container.registry.blah/namespace) for options. + EOT option { value = "ami-xxxxxxxx" name = "Ubuntu" @@ -26,14 +30,15 @@ data "coder_parameter" "ami" { data "coder_parameter" "is_public_instance" { name = "Is public instance?" - icon = "/icon/docker.svg" type = "bool" + icon = "/icon/docker.svg" default = false } data "coder_parameter" "cores" { name = "CPU Cores" - icon = "/icon/" + type = "number" + icon = "/icon/cpu.svg" default = 3 } @@ -50,7 +55,7 @@ data "coder_parameter" "disk_size" { } data "coder_parameter" "cat_lives" { - name = "Cat Live" + name = "Cat Lives" type = "number" default = "9" validation { diff --git a/provider/parameter_test.go b/provider/parameter_test.go index f4a7ae4e..788e0832 100644 --- a/provider/parameter_test.go +++ b/provider/parameter_test.go @@ -24,7 +24,10 @@ func TestParameter(t *testing.T) { data "coder_parameter" "region" { name = "Region" type = "string" - description = "Some option!" + description = <<-EOT + # Select the machine image + See the [registry](https://container.registry.blah/namespace) for options. + EOT mutable = true icon = "/icon/region.svg" option { @@ -46,7 +49,7 @@ data "coder_parameter" "region" { for key, value := range map[string]interface{}{ "name": "Region", "type": "string", - "description": "Some option!", + "description": "# Select the machine image\nSee the [registry](https://container.registry.blah/namespace) for options.\n", "mutable": "true", "icon": "/icon/region.svg", "option.0.name": "US Central",