Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit ed347a8

Browse files
Merge pull request #87 from sherzberg/customizable-log-driver
variable for log driver on tasks
2 parents 2533651 + a1b7e7f commit ed347a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

task/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ variable "memory" {
6262
default = 512
6363
}
6464

65+
variable "log_driver" {
66+
description = "The log driver to use use for the container"
67+
default = "journald"
68+
}
69+
6570
/**
6671
* Resources.
6772
*/
@@ -90,7 +95,7 @@ resource "aws_ecs_task_definition" "main" {
9095
"entryPoint": ${var.entry_point},
9196
"mountPoints": [],
9297
"logConfiguration": {
93-
"logDriver": "journald",
98+
"logDriver": "${var.log_driver}",
9499
"options": {
95100
"tag": "${var.name}"
96101
}

0 commit comments

Comments
 (0)