File tree 2 files changed +13
-5
lines changed
examples/resources/coder_parameter
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ data "coder_parameter" "example" {
17
17
18
18
data "coder_parameter" "ami" {
19
19
name = " Machine Image"
20
+ description = <<- EOT
21
+ # Provide the machine image
22
+ See the [registry](https://container.registry.blah/namespace) for options.
23
+ EOT
20
24
option {
21
25
value = " ami-xxxxxxxx"
22
26
name = " Ubuntu"
@@ -26,14 +30,15 @@ data "coder_parameter" "ami" {
26
30
27
31
data "coder_parameter" "is_public_instance" {
28
32
name = " Is public instance?"
29
- icon = " /icon/docker.svg"
30
33
type = " bool"
34
+ icon = " /icon/docker.svg"
31
35
default = false
32
36
}
33
37
34
38
data "coder_parameter" "cores" {
35
39
name = " CPU Cores"
36
- icon = " /icon/"
40
+ type = " number"
41
+ icon = " /icon/cpu.svg"
37
42
default = 3
38
43
}
39
44
@@ -50,7 +55,7 @@ data "coder_parameter" "disk_size" {
50
55
}
51
56
52
57
data "coder_parameter" "cat_lives" {
53
- name = " Cat Live "
58
+ name = " Cat Lives "
54
59
type = " number"
55
60
default = " 9"
56
61
validation {
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ func TestParameter(t *testing.T) {
24
24
data "coder_parameter" "region" {
25
25
name = "Region"
26
26
type = "string"
27
- description = "Some option!"
27
+ description = <<-EOT
28
+ # Select the machine image
29
+ See the [registry](https://container.registry.blah/namespace) for options.
30
+ EOT
28
31
mutable = true
29
32
icon = "/icon/region.svg"
30
33
option {
@@ -46,7 +49,7 @@ data "coder_parameter" "region" {
46
49
for key , value := range map [string ]interface {}{
47
50
"name" : "Region" ,
48
51
"type" : "string" ,
49
- "description" : "Some option! " ,
52
+ "description" : "# Select the machine image \n See the [registry](https://container.registry.blah/namespace) for options. \n " ,
50
53
"mutable" : "true" ,
51
54
"icon" : "/icon/region.svg" ,
52
55
"option.0.name" : "US Central" ,
You can’t perform that action at this time.
0 commit comments