We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ea2b7 commit c0832a1Copy full SHA for c0832a1
registry/coder/modules/local-windows-rdp/main.tf
@@ -52,6 +52,17 @@ locals {
52
53
data "coder_workspace" "me" {}
54
55
+resource "coder_script" "rdp_setup" {
56
+ agent_id = var.agent_id
57
+ display_name = "Configure RDP"
58
+ icon = "/icon/desktop.svg"
59
+ script = templatefile("${path.module}/configure-rdp.ps1", {
60
+ username = var.username
61
+ password = var.password
62
+ })
63
+ run_on_start = true
64
+}
65
+
66
resource "coder_app" "rdp_desktop" {
67
agent_id = var.agent_id
68
slug = "rdp-desktop"
@@ -68,3 +79,9 @@ output "app" {
79
sensitive = true
69
80
}
70
81
82
+output "script" {
83
+ description = "The RDP configuration script resource"
84
+ value = coder_script.rdp_setup
85
+ sensitive = true
86
87
0 commit comments