From 3878e66700445767896371854ba8c760a43dc5c6 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 8 Dec 2023 04:10:19 +0300 Subject: [PATCH] fix: use agent_name in jetbrains-gateway (#110) --- 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..c108f61 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=",