Skip to content

Commit 44d0f93

Browse files
updates to aws windows vm template
1 parent 81e9797 commit 44d0f93

File tree

1 file changed

+16
-18
lines changed
  • templates/vm-aws-base-windows

1 file changed

+16
-18
lines changed

templates/vm-aws-base-windows/main.tf

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,31 +122,19 @@ data "coder_parameter" "instance_type" {
122122
name = "instance_type"
123123
display_name = "Instance type"
124124
description = "What instance type should your workspace use?"
125-
default = "t3.large"
125+
default = "m5a.large"
126126
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-
}
139127
option {
140128
name = "2 vCPU, 8 GiB RAM"
141-
value = "t3.large"
129+
value = "m5a.large"
142130
}
143131
option {
144132
name = "4 vCPU, 16 GiB RAM"
145-
value = "t3.xlarge"
133+
value = "m5dn.xlarge"
146134
}
147135
option {
148136
name = "8 vCPU, 32 GiB RAM"
149-
value = "t3.2xlarge"
137+
value = "m5dn.2xlarge"
150138
}
151139
}
152140

@@ -222,10 +210,11 @@ resource "aws_ec2_instance_state" "dev" {
222210
}
223211

224212
module "dcv" {
213+
source = "registry.coder.com/modules/amazon-dcv-windows/coder"
214+
version = "1.0.24"
225215
count = data.coder_workspace.me.start_count
226-
source = "github.com/coder/modules//amazon-dcv-windows?ref=main"
227216
agent_id = resource.coder_agent.dev[count.index].id
228-
subdomain = true
217+
subdomain = false
229218
}
230219

231220
module "vscode-on-ws" {
@@ -262,4 +251,13 @@ resource "coder_metadata" "workspace_info" {
262251
value = module.dcv[count.index].password
263252
sensitive = true
264253
}
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+
}
265263
}

0 commit comments

Comments
 (0)