feat: add TASK_APP_ID logging and resource configuration in Terraform
This commit is contained in:
parent
9606297620
commit
781dcfd6e1
@ -219,6 +219,12 @@ resource "coder_env" "boundary_config" {
|
|||||||
value = var.boundary_config_path
|
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 {
|
locals {
|
||||||
# we always trim the slash for consistency
|
# we always trim the slash for consistency
|
||||||
workdir = trimsuffix(var.folder, "/")
|
workdir = trimsuffix(var.folder, "/")
|
||||||
|
|||||||
@ -27,6 +27,7 @@ export PATH="$ARG_CLAUDE_BINARY_PATH:$PATH"
|
|||||||
|
|
||||||
echo "--------------------------------"
|
echo "--------------------------------"
|
||||||
|
|
||||||
|
printf "TASK_APP_ID: %s\n" "${TASK_APP_ID}"
|
||||||
printf "ARG_CLAUDE_CODE_VERSION: %s\n" "$ARG_CLAUDE_CODE_VERSION"
|
printf "ARG_CLAUDE_CODE_VERSION: %s\n" "$ARG_CLAUDE_CODE_VERSION"
|
||||||
printf "ARG_WORKDIR: %s\n" "$ARG_WORKDIR"
|
printf "ARG_WORKDIR: %s\n" "$ARG_WORKDIR"
|
||||||
printf "ARG_INSTALL_CLAUDE_CODE: %s\n" "$ARG_INSTALL_CLAUDE_CODE"
|
printf "ARG_INSTALL_CLAUDE_CODE: %s\n" "$ARG_INSTALL_CLAUDE_CODE"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user