Skip to content

Commit 61d9630

Browse files
authored
Merge pull request #7 from geekcell/container-insights-log-group
feat: Add containerInsights log group
2 parents 8918ebd + b8fe3f5 commit 61d9630

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ performance and health.
6767

6868
## Resources
6969

70+
- resource.aws_cloudwatch_log_group.container_insights (main.tf#62)
7071
- resource.aws_cloudwatch_log_group.main (main.tf#55)
7172
- resource.aws_ecs_cluster.main (main.tf#10)
7273

main.tf

+9
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)