Make slug configurable in JetBrains Gateway module

pull/322/head
Muhammad Atif Ali 9 months ago
parent 48c81c9ff4
commit 7bb97ae422

@ -18,6 +18,12 @@ variable "agent_id" {
description = "The ID of a Coder agent." 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" { variable "agent_name" {
type = string type = string
description = "Agent name." description = "Agent name."
@ -247,7 +253,7 @@ data "coder_workspace_owner" "me" {}
resource "coder_app" "gateway" { resource "coder_app" "gateway" {
agent_id = var.agent_id agent_id = var.agent_id
slug = "gateway" slug = var.slug
display_name = local.display_name display_name = local.display_name
icon = local.icon icon = local.icon
external = true external = true

Loading…
Cancel
Save