From 7bb97ae422549ba8d8d8bc0139bd9a9a5c9bb725 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 17 Oct 2024 19:21:56 +0500 Subject: [PATCH] Make slug configurable in JetBrains Gateway module --- jetbrains-gateway/main.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jetbrains-gateway/main.tf b/jetbrains-gateway/main.tf index d4474b2..2bc00d3 100644 --- a/jetbrains-gateway/main.tf +++ b/jetbrains-gateway/main.tf @@ -18,6 +18,12 @@ variable "agent_id" { description = "The ID of a Coder agent." } +variable "slug" { + type = string + description = "The slug for the coder_app. Allows resuing the module with the same template." + default = "gateway" +} + variable "agent_name" { type = string description = "Agent name." @@ -247,7 +253,7 @@ data "coder_workspace_owner" "me" {} resource "coder_app" "gateway" { agent_id = var.agent_id - slug = "gateway" + slug = var.slug display_name = local.display_name icon = local.icon external = true