From 19cf546ac0dc5e686a1615af77c130b3d5565bb0 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 8 Dec 2023 04:04:19 +0300 Subject: [PATCH] fix: use agent_name in jetbrains-gateway --- jetbrains-gateway/main.tf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jetbrains-gateway/main.tf b/jetbrains-gateway/main.tf index 5671733..8f3142b 100644 --- a/jetbrains-gateway/main.tf +++ b/jetbrains-gateway/main.tf @@ -14,6 +14,11 @@ variable "agent_id" { description = "The ID of a Coder agent." } +variable "agent_name" { + type = string + description = "Agent name/" +} + variable "folder" { type = string description = "The directory to open in the IDE. e.g. /home/coder/project" @@ -119,8 +124,8 @@ resource "coder_app" "gateway" { url = join("", [ "jetbrains-gateway://connect#type=coder&workspace=", data.coder_workspace.me.name, - "&agent_id=", - var.agent_id, + "&agent=", + var.agent_name, "&folder=", var.folder, "&url=",