diff --git a/registry/coder/modules/amazon-q/main.tf b/registry/coder/modules/amazon-q/main.tf index a4bac213..84ac3c03 100644 --- a/registry/coder/modules/amazon-q/main.tf +++ b/registry/coder/modules/amazon-q/main.tf @@ -96,8 +96,6 @@ variable "workdir" { description = "The folder to run Amazon Q in." } -# --------------------------------------------- - variable "install_amazon_q" { type = bool description = "Whether to install Amazon Q." @@ -190,6 +188,7 @@ resource "coder_env" "auth_tarball" { locals { app_slug = "amazonq" + workdir = trimsuffix(var.workdir, "/") install_script = file("${path.module}/scripts/install.sh") start_script = file("${path.module}/scripts/start.sh") module_dir_name = ".amazonq-module" @@ -218,6 +217,7 @@ module "agentapi" { version = "1.2.0" agent_id = var.agent_id + folder = local.workdir web_app_slug = local.app_slug web_app_order = var.order web_app_group = var.group