Skip to content

Commit d646eec

Browse files
committed
Update RDP module icons and Terraform provider version
- Replace desktop.svg with rdp.svg in RDP modules for consistency - Update Coder provider version to 2.5 in windows-rdp module - Simplify code by removing unused resource_id variable - Correct URL in RDP documentation resource link
1 parent 06497ac commit d646eec

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

registry/coder/modules/local-windows-rdp/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ tags: [rdp, windows, desktop, local]
1212

1313
This module enables Remote Desktop Protocol (RDP) on Windows workspaces and adds a one-click button to launch RDP sessions directly through [Coder Desktop](https://coder.com/docs/user-guides/desktop). It provides a complete, standalone solution for RDP access, eliminating the need for manual configuration or port forwarding through the Coder CLI.
1414

15-
> [!NOTE]
16-
> [Coder Desktop](https://coder.com/docs/user-guides/desktop) is required on client devices to use the Local Windows RDP access feature.
15+
> [!NOTE] > [Coder Desktop](https://coder.com/docs/user-guides/desktop) is required on client devices to use the Local Windows RDP access feature.
1716
1817
```tf
1918
module "rdp_desktop" {

registry/coder/modules/local-windows-rdp/main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ data "coder_workspace" "me" {}
6060
resource "coder_script" "rdp_setup" {
6161
agent_id = var.agent_id
6262
display_name = "Configure RDP"
63-
icon = "/icon/desktop.svg"
63+
icon = "/icon/rdp.svg"
6464
script = templatefile("${path.module}/configure-rdp.ps1", {
6565
username = var.username
6666
password = var.password
@@ -73,9 +73,8 @@ resource "coder_app" "rdp_desktop" {
7373
slug = "rdp-desktop"
7474
display_name = var.display_name
7575
url = "coder://${local.server_name}/v0/open/ws/${data.coder_workspace.me.name}/agent/${var.agent_name}/rdp?username=${var.username}&password=${var.password}"
76-
icon = "/icon/desktop.svg"
76+
icon = "/icon/rdp.svg"
7777
external = true
7878
order = var.order
7979
group = var.group
8080
}
81-

registry/coder/modules/windows-rdp/main.tf

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
coder = {
66
source = "coder/coder"
7-
version = ">= 0.17"
7+
version = ">= 2.5"
88
}
99
}
1010
}
@@ -35,11 +35,6 @@ variable "agent_id" {
3535
description = "The ID of a Coder agent."
3636
}
3737

38-
variable "resource_id" {
39-
type = string
40-
description = "The ID of the primary Coder resource (e.g. VM)."
41-
}
42-
4338
variable "admin_username" {
4439
type = string
4540
default = "Administrator"
@@ -60,7 +55,7 @@ variable "devolutions_gateway_version" {
6055
resource "coder_script" "windows-rdp" {
6156
agent_id = var.agent_id
6257
display_name = "windows-rdp"
63-
icon = "/icon/desktop.svg"
58+
icon = "/icon/rdp.svg"
6459

6560
script = templatefile("${path.module}/powershell-installation-script.tftpl", {
6661
admin_username = var.admin_username
@@ -101,7 +96,7 @@ resource "coder_app" "rdp-docs" {
10196
agent_id = var.agent_id
10297
display_name = "Local RDP Docs"
10398
slug = "rdp-docs"
104-
icon = "https://raw.githubusercontent.com/matifali/logos/main/windows.svg"
105-
url = "https://coder.com/docs/ides/remote-desktops#rdp-desktop"
99+
icon = "/icon/windows.svg"
100+
url = "https://coder.com/docs/user-guides/workspace-access/remote-desktops#rdp"
106101
external = true
107102
}

0 commit comments

Comments
 (0)