Skip to content

Commit 6a441b0

Browse files
authored
Merge pull request #46 from DNXLabs/feat/container-insights
Add container insights capability
2 parents cdfadfe + 39d5c7f commit 6a441b0

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module "ecs_apps" {
9292
| backup | Assing a backup tag to efs resource - Backup will be performed by AWS Backup. | `string` | `"true"` | no |
9393
| certificate\_arn | n/a | `any` | n/a | yes |
9494
| certificate\_internal\_arn | certificate arn for internal ALB. | `string` | `""` | no |
95+
| container\_insights | Enables CloudWatch Container Insights for a cluster. | `bool` | `false` | no |
9596
| create\_efs | Enables creation of EFS volume for cluster | `bool` | `true` | no |
9697
| create\_iam\_service\_linked\_role | Create iam\_service\_linked\_role for ECS or not. | `bool` | `false` | no |
9798
| ebs\_key\_arn | ARN of a KMS Key to use on EBS volumes | `string` | `""` | no |

_variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,10 @@ variable "extra_task_policies_arn" {
360360
type = list(string)
361361
default = []
362362
description = "Extra policies to add to the task definition permissions"
363+
}
364+
365+
variable "container_insights" {
366+
type = bool
367+
default = false
368+
description = "Enables CloudWatch Container Insights for a cluster."
363369
}

ecs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ resource "aws_ecs_cluster" "ecs" {
77
"FARGATE_SPOT"
88
])
99

10+
setting {
11+
name = "containerInsights"
12+
value = var.container_insights ? "enabled" : "disabled"
13+
}
14+
1015
lifecycle {
1116
ignore_changes = [
1217
tags

0 commit comments

Comments
 (0)