Skip to content

Commit

Permalink
Create log group auxiliary
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixroa committed Jan 12, 2021
1 parent 9e740f0 commit c2a2a58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ resource "aws_ecs_task_definition" "main" {
"options": {
"awslogs-group": "${var.name}-firelens-container",
"awslogs-region": "${var.region}",
"awslogs-create-group": "true",
"awslogs-stream-prefix": "firelens"
}
},
Expand Down Expand Up @@ -125,6 +124,12 @@ resource "aws_ecs_task_definition" "main" {
TASK_DEFINITION
}

// Auxiliary logs
resource "aws_cloudwatch_log_group" "main" {
name = "${var.name}-firelens-container"
retention_in_days = 14
}

/*===========================================
Autoscaling zone
============================================*/
Expand Down

0 comments on commit c2a2a58

Please sign in to comment.