feat(jetbrains-gateway): add slug variable (#322)

This commit is contained in:
Muhammad Atif Ali
2024-10-17 07:25:03 -07:00
committed by GitHub
parent 9752bf89a6
commit 8e0dfcd534
2 changed files with 11 additions and 5 deletions

View File

@@ -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