File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 9
9
type TestVariables = Readonly < {
10
10
agent_id : string ;
11
11
resource_id : string ;
12
+ share ?: string ;
12
13
admin_username ?: string ;
13
14
admin_password ?: string ;
14
15
} > ;
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ terraform {
9
9
}
10
10
}
11
11
12
+ variable "share" {
13
+ type = string
14
+ default = " owner"
15
+ validation {
16
+ condition = var. share == " owner" || var. share == " authenticated" || var. share == " public"
17
+ error_message = " Incorrect value. Please set either 'owner', 'authenticated', or 'public'."
18
+ }
19
+ }
20
+
12
21
variable "agent_id" {
13
22
type = string
14
23
description = " The ID of a Coder agent."
@@ -53,6 +62,7 @@ resource "coder_script" "windows-rdp" {
53
62
54
63
resource "coder_app" "windows-rdp" {
55
64
agent_id = var. agent_id
65
+ share = var. share
56
66
slug = " web-rdp"
57
67
display_name = " Web RDP"
58
68
url = " http://localhost:7171"
You can’t perform that action at this time.
0 commit comments