@@ -14,11 +14,6 @@ variable "agent_id" {
14
14
description = " The ID of a Coder agent."
15
15
}
16
16
17
- variable "agent_name" {
18
- type = string
19
- description = " The name of a Coder agent."
20
- }
21
-
22
17
variable "folder" {
23
18
type = string
24
19
description = " The directory to open in the IDE. e.g. /home/coder/project"
@@ -33,13 +28,14 @@ variable "default" {
33
28
variable "jetbrains_ides" {
34
29
type = list (string )
35
30
description = " The list of IDE product codes."
31
+ default = [" IU" , " PS" , " WS" , " PY" , " CL" , " GO" , " RM" ]
36
32
validation {
37
33
condition = (
38
34
alltrue ([
39
- for code in var . jetbrains_ides : contains ([" IU" , " IC " , " PS" , " WS" , " PY" , " PC " , " CL" , " GO" , " DB " , " RD " , " RM" ], code)
35
+ for code in var . jetbrains_ides : contains ([" IU" , " PS" , " WS" , " PY" , " CL" , " GO" , " RM" ], code)
40
36
])
41
37
)
42
- error_message = " The jetbrains_ides must be a list of valid product codes. Valid product codes are: IU, IC, PS, WS, PY, PC, CL, GO, DB, RD , RM."
38
+ error_message = " The jetbrains_ides must be a list of valid product codes. Valid product codes are IU, PS, WS, PY, CL, GO, RM."
43
39
}
44
40
# check if the list is empty
45
41
validation {
@@ -58,57 +54,37 @@ locals {
58
54
" GO" = {
59
55
icon = " /icon/goland.svg" ,
60
56
name = " GoLand" ,
61
- value = jsonencode ([" GO" , " 232.9921.53 " , " https://download.jetbrains.com/go/goland-2023.2.2 .tar.gz" ])
57
+ value = jsonencode ([" GO" , " 232.10203.20 " , " https://download.jetbrains.com/go/goland-2023.2.4 .tar.gz" ])
62
58
},
63
59
" WS" = {
64
60
icon = " /icon/webstorm.svg" ,
65
61
name = " WebStorm" ,
66
- value = jsonencode ([" WS" , " 232.9921.42 " , " https://download.jetbrains.com/webstorm/WebStorm-2023.2.2 .tar.gz" ])
62
+ value = jsonencode ([" WS" , " 232.10203.14 " , " https://download.jetbrains.com/webstorm/WebStorm-2023.2.4 .tar.gz" ])
67
63
},
68
64
" IU" = {
69
65
icon = " /icon/intellij.svg" ,
70
66
name = " IntelliJ IDEA Ultimate" ,
71
- value = jsonencode ([" IU" , " 232.9921.47" , " https://download.jetbrains.com/idea/ideaIU-2023.2.2.tar.gz" ])
72
- },
73
- " IC" = {
74
- icon = " /icon/intellij.svg" ,
75
- name = " IntelliJ IDEA Community" ,
76
- value = jsonencode ([" IC" , " 232.9921.47" , " https://download.jetbrains.com/idea/ideaIC-2023.2.2.tar.gz" ])
67
+ value = jsonencode ([" IU" , " 232.10203.10" , " https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz" ])
77
68
},
78
69
" PY" = {
79
70
icon = " /icon/pycharm.svg" ,
80
71
name = " PyCharm Professional" ,
81
- value = jsonencode ([" PY" , " 232.9559.58 " , " https://download.jetbrains.com/python/pycharm-professional-2023.2.1 .tar.gz" ])
72
+ value = jsonencode ([" PY" , " 232.10203.26 " , " https://download.jetbrains.com/python/pycharm-professional-2023.2.4 .tar.gz" ])
82
73
},
83
- " PC" = {
84
- icon = " /icon/pycharm.svg" ,
85
- name = " PyCharm Community" ,
86
- value = jsonencode ([" PC" , " 232.9559.58" , " https://download.jetbrains.com/python/pycharm-community-2023.2.1.tar.gz" ])
87
- },
88
- " RD" = {
89
- icon = " /icon/rider.svg" ,
90
- name = " Rider" ,
91
- value = jsonencode ([" RD" , " 232.9559.61" , " https://download.jetbrains.com/rider/JetBrains.Rider-2023.2.1.tar.gz" ])
92
- }
93
74
" CL" = {
94
75
icon = " /icon/clion.svg" ,
95
76
name = " CLion" ,
96
77
value = jsonencode ([" CL" , " 232.9921.42" , " https://download.jetbrains.com/cpp/CLion-2023.2.2.tar.gz" ])
97
78
},
98
- " DB" = {
99
- icon = " /icon/datagrip.svg" ,
100
- name = " DataGrip" ,
101
- value = jsonencode ([" DB" , " 232.9559.28" , " https://download.jetbrains.com/datagrip/datagrip-2023.2.1.tar.gz" ])
102
- },
103
79
" PS" = {
104
80
icon = " /icon/phpstorm.svg" ,
105
81
name = " PhpStorm" ,
106
- value = jsonencode ([" PS" , " 232.9559.64 " , " https://download.jetbrains.com/webide/PhpStorm-2023.2.1 .tar.gz" ])
82
+ value = jsonencode ([" PS" , " 232.10072.32 " , " https://download.jetbrains.com/webide/PhpStorm-2023.2.3 .tar.gz" ])
107
83
},
108
84
" RM" = {
109
85
icon = " /icon/rubymine.svg" ,
110
86
name = " RubyMine" ,
111
- value = jsonencode ([" RM" , " 232.9921.48 " , " https://download.jetbrains.com/ruby/RubyMine-2023.2.2 .tar.gz" ])
87
+ value = jsonencode ([" RM" , " 232.10203.15 " , " https://download.jetbrains.com/ruby/RubyMine-2023.2.4 .tar.gz" ])
112
88
}
113
89
}
114
90
}
@@ -143,8 +119,8 @@ resource "coder_app" "gateway" {
143
119
url = join (" " , [
144
120
" jetbrains-gateway://connect#type=coder&workspace=" ,
145
121
data . coder_workspace . me . name ,
146
- " &agent =" ,
147
- var . agent_name ,
122
+ " &agent_id =" ,
123
+ var . agent_id ,
148
124
" &folder=" ,
149
125
var . folder ,
150
126
" &url=" ,
0 commit comments