From c9e74780b708cbed5849e5978ce8a6066237fef3 Mon Sep 17 00:00:00 2001 From: Marco Hanisch <62360496+mohanisch-sixt@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:57:54 +0100 Subject: [PATCH] set new var log_configuration_driver to set logdriver --- main.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 42b7120..231ef6f 100644 --- a/main.tf +++ b/main.tf @@ -159,7 +159,7 @@ locals { "environmentFiles" = var.task_container_environment_file "MountPoints" = local.task_container_mount_points "logConfiguration" = { - "logDriver" = "awslogs" + "logDriver" = var.log_configuration_driver "options" = local.log_configuration_options } "privileged" : var.privileged diff --git a/variables.tf b/variables.tf index 36dec86..12470df 100644 --- a/variables.tf +++ b/variables.tf @@ -153,6 +153,12 @@ variable "log_multiline_pattern" { type = string } +variable "log_configuration_driver" { + description = "The log driver that the container definition will use." + default = "awslogs" + type = string +} + variable "health_check" { description = "A health block containing health check settings for the target group. Overrides the defaults." type = map(string)