Skip to content

Commit eab4cb4

Browse files
committed
Add containerInsights log group
1 parent dfd6446 commit eab4cb4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ resource "aws_cloudwatch_log_group" "main" {
5858
name = "/ecs/cluster/${var.name}/ssm-logs"
5959
tags = var.tags
6060
}
61+
62+
resource "aws_cloudwatch_log_group" "container_insights" {
63+
count = var.enable_container_insights ? 1 : 0
64+
65+
name = "/aws/ecs/containerinsights/${var.name}/performance"
66+
retention_in_days = 1
67+
68+
tags = var.tags
69+
}

0 commit comments

Comments
 (0)