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)