From fa46f76f544e4761a420c78471c1eaa77d7635f7 Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Tue, 14 Oct 2025 09:18:59 -0500 Subject: [PATCH] fix: add local for workdir and pass to agentapi --- registry/coder/modules/amazon-q/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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