Update jetbrains-gateway module references to coder/jetbrains (#396)

Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
blink-so[bot] 2025-08-29 17:46:25 +05:00 committed by GitHub
parent 901043bb01
commit 7e53098bea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 180 additions and 262 deletions

View File

@ -24,6 +24,7 @@ module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder" source = "registry.coder.com/coder/claude-code/coder"
version = "2.0.0" version = "2.0.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder/projects" folder = "/home/coder/projects"
install_claude_code = true install_claude_code = true
claude_code_version = "latest" claude_code_version = "latest"
@ -44,9 +45,10 @@ variable "anthropic_api_key" {
sensitive = true sensitive = true
} }
resource "coder_env" "anthropic_api_key" { resource "coder_env" "anthropic_api_key" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "CODER_MCP_CLAUDE_API_KEY" agent_name = "main"
value = var.anthropic_api_key name = "CODER_MCP_CLAUDE_API_KEY"
value = var.anthropic_api_key
} }
# We are using presets to set the prompts, image, and set up instructions # We are using presets to set the prompts, image, and set up instructions
@ -174,19 +176,22 @@ data "coder_parameter" "preview_port" {
# Other variables for Claude Code # Other variables for Claude Code
resource "coder_env" "claude_task_prompt" { resource "coder_env" "claude_task_prompt" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "CODER_MCP_CLAUDE_TASK_PROMPT" agent_name = "main"
value = data.coder_parameter.ai_prompt.value name = "CODER_MCP_CLAUDE_TASK_PROMPT"
value = data.coder_parameter.ai_prompt.value
} }
resource "coder_env" "app_status_slug" { resource "coder_env" "app_status_slug" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "CODER_MCP_APP_STATUS_SLUG" agent_name = "main"
value = "ccw" name = "CODER_MCP_APP_STATUS_SLUG"
value = "ccw"
} }
resource "coder_env" "claude_system_prompt" { resource "coder_env" "claude_system_prompt" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT" agent_name = "main"
value = data.coder_parameter.system_prompt.value name = "CODER_MCP_CLAUDE_SYSTEM_PROMPT"
value = data.coder_parameter.system_prompt.value
} }
data "coder_provisioner" "me" {} data "coder_provisioner" "me" {}
@ -296,48 +301,42 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
order = 1 agent_name = "main"
order = 1
} }
module "vscode" { module "vscode" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/vscode-desktop/coder" source = "registry.coder.com/coder/vscode-desktop/coder"
version = "1.1.0" version = "1.1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
} }
module "windsurf" { module "windsurf" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/windsurf/coder" source = "registry.coder.com/coder/windsurf/coder"
version = "1.1.0" version = "1.1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
} }
module "cursor" { module "cursor" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/cursor/coder" source = "registry.coder.com/coder/cursor/coder"
version = "1.2.0" version = "1.2.0"
agent_id = coder_agent.main.id
}
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder/projects"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 }
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder/projects"
} }
resource "docker_volume" "home_volume" { resource "docker_volume" "home_volume" {
@ -369,6 +368,7 @@ resource "docker_volume" "home_volume" {
resource "coder_app" "preview" { resource "coder_app" "preview" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
slug = "preview" slug = "preview"
display_name = "Preview your app" display_name = "Preview your app"
icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png" icon = "${data.coder_workspace.me.access_url}/emojis/1f50e.png"

View File

@ -326,6 +326,7 @@ module "code-server" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/code-server/coder" source = "registry.coder.com/coder/code-server/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.dev[0].id agent_id = coder_agent.dev[0].id
agent_name = "dev"
} }

View File

@ -201,28 +201,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.dev[0].id
order = 1
}
# See https://registry.coder.com/modules/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.dev[0].id agent_id = coder_agent.dev[0].id
agent_name = "dev" agent_name = "dev"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.dev[0].id
agent_name = "dev"
folder = "/home/coder"
} }
locals { locals {

View File

@ -144,28 +144,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
locals { locals {

View File

@ -37,6 +37,7 @@ module "windows_rdp" {
admin_password = random_password.admin_password.result admin_password = random_password.admin_password.result
agent_id = resource.coder_agent.main.id agent_id = resource.coder_agent.main.id
agent_name = "main"
resource_id = null # Unused, to be removed in a future version resource_id = null # Unused, to be removed in a future version
} }

View File

@ -272,28 +272,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
resource "digitalocean_volume" "home_volume" { resource "digitalocean_volume" "home_volume" {

View File

@ -330,28 +330,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/workspaces"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/workspaces"
} }
resource "coder_metadata" "container_info" { resource "coder_metadata" "container_info" {

View File

@ -129,28 +129,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
resource "docker_volume" "home_volume" { resource "docker_volume" "home_volume" {

View File

@ -291,28 +291,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/workspaces"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/workspaces"
} }
# Create metadata for the workspace and home disk. # Create metadata for the workspace and home disk.

View File

@ -99,28 +99,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
resource "google_compute_instance" "dev" { resource "google_compute_instance" "dev" {

View File

@ -52,28 +52,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
# See https://registry.terraform.io/modules/terraform-google-modules/container-vm # See https://registry.terraform.io/modules/terraform-google-modules/container-vm
@ -122,6 +113,7 @@ resource "google_compute_instance" "dev" {
resource "coder_agent_instance" "dev" { resource "coder_agent_instance" "dev" {
count = data.coder_workspace.me.start_count count = data.coder_workspace.me.start_count
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
instance_id = google_compute_instance.dev[0].instance_id instance_id = google_compute_instance.dev[0].instance_id
} }

View File

@ -422,28 +422,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
resource "coder_metadata" "container_info" { resource "coder_metadata" "container_info" {

View File

@ -106,28 +106,19 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains-gateway
module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/jetbrains-gateway/coder"
# JetBrains IDEs to make available for the user to select
jetbrains_ides = ["IU", "PY", "WS", "PS", "RD", "CL", "GO", "RM"]
default = "IU"
# Default folder to open when starting a JetBrains IDE
folder = "/home/coder"
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main" agent_name = "main"
order = 2 order = 1
}
# See https://registry.coder.com/modules/coder/jetbrains
module "jetbrains" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder/jetbrains/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder"
} }
resource "kubernetes_persistent_volume_claim" "home" { resource "kubernetes_persistent_volume_claim" "home" {

View File

@ -177,6 +177,7 @@ resource "coder_agent" "main" {
# code-server # code-server
resource "coder_app" "code-server" { resource "coder_app" "code-server" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
slug = "code-server" slug = "code-server"
display_name = "code-server" display_name = "code-server"
icon = "/icon/code.svg" icon = "/icon/code.svg"

View File

@ -118,8 +118,9 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
order = 1 agent_name = "main"
order = 1
} }
locals { locals {

View File

@ -34,9 +34,10 @@ resource "coder_agent" "main" {
# Use this to set environment variables in your workspace # Use this to set environment variables in your workspace
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/env # details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/env
resource "coder_env" "welcome_message" { resource "coder_env" "welcome_message" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
name = "WELCOME_MESSAGE" agent_name = "main"
value = "Welcome to your Coder workspace!" name = "WELCOME_MESSAGE"
value = "Welcome to your Coder workspace!"
} }
# Adds code-server # Adds code-server
@ -48,13 +49,15 @@ module "code-server" {
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production. # This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
version = "~> 1.0" version = "~> 1.0"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
} }
# Runs a script at workspace start/stop or on a cron schedule # Runs a script at workspace start/stop or on a cron schedule
# details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script # details: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script
resource "coder_script" "startup_script" { resource "coder_script" "startup_script" {
agent_id = coder_agent.main.id agent_id = coder_agent.main.id
agent_name = "main"
display_name = "Startup Script" display_name = "Startup Script"
script = <<-EOF script = <<-EOF
#!/bin/sh #!/bin/sh