8000 Make slug configurable in JetBrains Gateway module · coder/modules@7bb97ae · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7bb97ae

Browse files
committed
Make slug configurable in JetBrains Gateway module
1 parent 48c81c9 commit 7bb97ae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jetbrains-gateway/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ variable "agent_id" {
1818
description = "The ID of a Coder agent."
1919
}
2020

21+
variable "slug" {
22+
type = string
23+
description = "The slug for the coder_app. Allows resuing the module with the same template."
24+
default = "gateway"
25+
}
26+
2127
variable "agent_name" {
2228
type = string
2329
description = "Agent name."
@@ -247,7 +253,7 @@ data "coder_workspace_owner" "me" {}
247253

248254
resource "coder_app" "gateway" {
249255
agent_id = var.agent_id
250-
slug = "gateway"
256+
slug = var.slug
251257
display_name = local.display_name
252258
icon = local.icon
253259
external = true

0 commit comments

Comments
 (0)
0