Skip to content

Commit 01ac32f

Browse files
jensenboxclaude
andcommitted
C-241 Wire runner deregistration through root module
The root (single-runner) module also uses termination-watcher but wasn't wiring github_app_parameters through. Add enable_runner_deregistration, github_app_parameters, and ghes_url to the root module's termination watcher config, matching the multi-runner changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 924035c commit 01ac32f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,12 @@ locals {
381381
s3_bucket = var.lambda_s3_bucket
382382
tracing_config = var.tracing_config
383383
metrics = var.metrics
384+
enable_runner_deregistration = var.instance_termination_watcher.enable_runner_deregistration
385+
github_app_parameters = var.instance_termination_watcher.enable_runner_deregistration ? {
386+
id = local.github_app_parameters.id
387+
key_base64 = local.github_app_parameters.key_base64
388+
} : null
389+
ghes_url = var.ghes_url
384390
}
385391
}
386392

variables.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,11 +971,12 @@ variable "instance_termination_watcher" {
971971
enable_spot_termination_handler = optional(bool, true)
972972
enable_spot_termination_notification_watcher = optional(bool, true)
973973
}), {})
974-
memory_size = optional(number, null)
975-
s3_key = optional(string, null)
976-
s3_object_version = optional(string, null)
977-
timeout = optional(number, null)
978-
zip = optional(string, null)
974+
enable_runner_deregistration = optional(bool, true)
975+
memory_size = optional(number, null)
976+
s3_key = optional(string, null)
977+
s3_object_version = optional(string, null)
978+
timeout = optional(number, null)
979+
zip = optional(string, null)
979980
})
980981
default = {}
981982

0 commit comments

Comments
 (0)