From 6b0fe3742a53a78108d58cd8d732683c0425da9a Mon Sep 17 00:00:00 2001 From: piscue Date: Wed, 23 Aug 2023 12:06:21 +0200 Subject: [PATCH] support for cloudwatch config on multi-runners --- modules/multi-runner/runners.tf | 2 +- modules/multi-runner/variables.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/multi-runner/runners.tf b/modules/multi-runner/runners.tf index ca6e9dd7336..a52fd5095a5 100644 --- a/modules/multi-runner/runners.tf +++ b/modules/multi-runner/runners.tf @@ -69,7 +69,7 @@ module "runners" { logging_retention_in_days = var.logging_retention_in_days logging_kms_key_id = var.logging_kms_key_id enable_cloudwatch_agent = each.value.runner_config.enable_cloudwatch_agent - cloudwatch_config = var.cloudwatch_config + cloudwatch_config = each.value.runner_config.cloudwatch_config runner_log_files = each.value.runner_config.runner_log_files runner_group_name = each.value.runner_config.runner_group_name runner_name_prefix = each.value.runner_config.runner_name_prefix diff --git a/modules/multi-runner/variables.tf b/modules/multi-runner/variables.tf index 757bb7b7462..a5c78460fae 100644 --- a/modules/multi-runner/variables.tf +++ b/modules/multi-runner/variables.tf @@ -71,6 +71,7 @@ variable "multi_runner_config" { enable_jit_config = optional(bool, null) enable_runner_detailed_monitoring = optional(bool, false) enable_cloudwatch_agent = optional(bool, true) + cloudwatch_config = optional(string, null) userdata_pre_install = optional(string, "") userdata_post_install = optional(string, "") runner_ec2_tags = optional(map(string), {})