Compare commits

...

3 Commits

Author SHA1 Message Date
35C4n0r b2bd8329ed meh 2026-03-12 20:42:13 +05:30
35C4n0r dedf656afe feat: update agentapi module source to use Git repository reference 2026-03-12 18:54:13 +05:30
35C4n0r 781dcfd6e1 feat: add TASK_APP_ID logging and resource configuration in Terraform 2026-03-12 18:43:30 +05:30
3 changed files with 11 additions and 2 deletions
+6
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, "/")
+4 -2
View File
@@ -361,8 +361,8 @@ locals {
}
module "agentapi" {
source = "registry.coder.com/coder/agentapi/coder"
version = "2.2.0"
source = "git::https://github.com/coder/registry.git//registry/coder/modules/agentapi?ref=35C4n0r/test-task-app-id-based-path"
# version = "2.2.0"
agent_id = var.agent_id
web_app_slug = local.app_slug
@@ -388,6 +388,8 @@ module "agentapi" {
echo -n '${base64encode(local.start_script)}' | base64 -d > /tmp/start.sh
chmod +x /tmp/start.sh
printf "Workspace ID: %s\n" "${data.coder_workspace.me.id}"
ARG_RESUME_SESSION_ID='${var.resume_session_id}' \
ARG_CONTINUE='${var.continue}' \
ARG_DANGEROUSLY_SKIP_PERMISSIONS='${var.dangerously_skip_permissions}' \
@@ -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"