File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed
templates/vm-aws-base-windows Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -122,31 +122,19 @@ data "coder_parameter" "instance_type" {
122
122
name = " instance_type"
123
123
display_name = " Instance type"
124
124
description = " What instance type should your workspace use?"
125
- default = " t3 .large"
125
+ default = " m5a .large"
126
126
mutable = false
127
- option {
128
- name = " 2 vCPU, 1 GiB RAM"
129
- value = " t3.micro"
130
- }
131
- option {
132
- name = " 2 vCPU, 2 GiB RAM"
133
- value = " t3.small"
134
- }
135
- option {
136
- name = " 2 vCPU, 4 GiB RAM"
137
- value = " t3.medium"
138
- }
139
127
option {
140
128
name = " 2 vCPU, 8 GiB RAM"
141
- value = " t3 .large"
129
+ value = " m5a .large"
142
130
}
143
131
option {
144
132
name = " 4 vCPU, 16 GiB RAM"
145
- value = " t3 .xlarge"
133
+ value = " m5dn .xlarge"
146
134
}
147
135
option {
148
136
name = " 8 vCPU, 32 GiB RAM"
149
- value = " t3 .2xlarge"
137
+ value = " m5dn .2xlarge"
150
138
}
151
139
}
152
140
@@ -222,10 +210,11 @@ resource "aws_ec2_instance_state" "dev" {
222
210
}
223
211
224
212
module "dcv" {
213
+ source = " registry.coder.com/modules/amazon-dcv-windows/coder"
214
+ version = " 1.0.24"
225
215
count = data. coder_workspace . me . start_count
226
- source = " github.com/coder/modules//amazon-dcv-windows?ref=main"
227
216
agent_id = resource. coder_agent . dev [count . index ]. id
228
- subdomain = true
217
+ subdomain = false
229
218
}
230
219
231
220
module "vscode-on-ws" {
@@ -262,4 +251,13 @@ resource "coder_metadata" "workspace_info" {
262
251
value = module. dcv [count . index ]. password
263
252
sensitive = true
264
253
}
254
+ } {
255
+ key = " username"
256
+ value = module.dcv[count.index].username
257
+ }
258
+ item {
259
+ key = " password"
260
+ value = module. dcv [count . index ]. password
261
+ sensitive = true
262
+ }
265
263
}
You can’t perform that action at this time.
0 commit comments