diff --git a/registry/coder/modules/agentapi/main.tf b/registry/coder/modules/agentapi/main.tf index e587a581..45c12852 100644 --- a/registry/coder/modules/agentapi/main.tf +++ b/registry/coder/modules/agentapi/main.tf @@ -259,6 +259,7 @@ resource "coder_script" "agentapi" { /tmp/main.sh EOT run_on_start = true + depends_on = [module.agent-helper] } resource "coder_script" "agentapi_shutdown" {