feat: add TASK_APP_ID logging and resource configuration in Terraform

This commit is contained in:
35C4n0r 2026-03-12 18:43:30 +05:30
parent 9606297620
commit 781dcfd6e1
No known key found for this signature in database
GPG Key ID: 5B71E5C9D18D5675
2 changed files with 7 additions and 0 deletions

View File

@ -219,6 +219,12 @@ resource "coder_env" "boundary_config" {
value = var.boundary_config_path
}
resource "coder_env" "task_app_id" {
agent_id = var.agent_id
name = "TASK_APP_ID"
value = coder_app.agentapi_web.id
}
locals {
# we always trim the slash for consistency
workdir = trimsuffix(var.folder, "/")

View File

@ -27,6 +27,7 @@ export PATH="$ARG_CLAUDE_BINARY_PATH:$PATH"
echo "--------------------------------"
printf "TASK_APP_ID: %s\n" "${TASK_APP_ID}"
printf "ARG_CLAUDE_CODE_VERSION: %s\n" "$ARG_CLAUDE_CODE_VERSION"
printf "ARG_WORKDIR: %s\n" "$ARG_WORKDIR"
printf "ARG_INSTALL_CLAUDE_CODE: %s\n" "$ARG_INSTALL_CLAUDE_CODE"