From fc88b54bf7e806bcc5712c8cd477b87a1be938f0 Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Mon, 9 Feb 2026 21:39:28 +0530 Subject: [PATCH] feat: use outputs instead of hard coded names --- registry/coder/modules/agentapi/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/coder/modules/agentapi/main.tf b/registry/coder/modules/agentapi/main.tf index 25aaf85e..067e5f0f 100644 --- a/registry/coder/modules/agentapi/main.tf +++ b/registry/coder/modules/agentapi/main.tf @@ -238,7 +238,7 @@ resource "coder_script" "agentapi" { set -o pipefail trap 'coder exp sync complete ${local.agentapi_main_script_name}' EXIT - coder exp sync want ${local.agentapi_main_script_name} ${local.start_script_name} + coder exp sync want ${local.agentapi_main_script_name} ${module.agent-helper.start_script_name} coder exp sync start ${local.agentapi_main_script_name} echo -n '${base64encode(local.main_script)}' | base64 -d > /tmp/main.sh @@ -260,6 +260,7 @@ resource "coder_script" "agentapi" { /tmp/main.sh EOT run_on_start = true + depends_on = [module.agent-helper] } resource "coder_script" "agentapi_shutdown" {