Skip to content

Commit 2cc8aef

Browse files
committed
add new variable to multi-runner
1 parent a8e2618 commit 2cc8aef

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

modules/multi-runner/variables.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,12 @@ variable "instance_termination_watcher" {
634634
EOF
635635

636636
type = object({
637-
enable = optional(bool, false)
638-
enable_metrics = optional(string, null) # deprecated
637+
enable = optional(bool, false)
638+
enable_metrics = optional(string, null) # deprecated
639+
features = optional(object({
640+
enable_spot_termination_handler = optional(bool, true)
641+
enable_spot_termination_notification_watcher = optional(bool, true)
642+
}), {})
639643
memory_size = optional(number, null)
640644
s3_key = optional(string, null)
641645
s3_object_version = optional(string, null)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module "termination_notification" {
2+
count = var.config.features.enable_spot_termination_notification_watcher ? 1 : 0
3+
source = "./notification"
4+
5+
config = local.config
6+
}

0 commit comments

Comments
 (0)