File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ module "ecs_apps" {
92
92
| backup | Assing a backup tag to efs resource - Backup will be performed by AWS Backup. | ` string ` | ` "true" ` | no |
93
93
| certificate\_ arn | n/a | ` any ` | n/a | yes |
94
94
| certificate\_ internal\_ arn | certificate arn for internal ALB. | ` string ` | ` "" ` | no |
95
+ | container\_ insights | Enables CloudWatch Container Insights for a cluster. | ` bool ` | ` false ` | no |
95
96
| create\_ efs | Enables creation of EFS volume for cluster | ` bool ` | ` true ` | no |
96
97
| create\_ iam\_ service\_ linked\_ role | Create iam\_ service\_ linked\_ role for ECS or not. | ` bool ` | ` false ` | no |
97
98
| ebs\_ key\_ arn | ARN of a KMS Key to use on EBS volumes | ` string ` | ` "" ` | no |
Original file line number Diff line number Diff line change @@ -360,4 +360,10 @@ variable "extra_task_policies_arn" {
360
360
type = list (string )
361
361
default = []
362
362
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."
363
369
}
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ resource "aws_ecs_cluster" "ecs" {
7
7
" FARGATE_SPOT"
8
8
])
9
9
10
+ setting {
11
+ name = " containerInsights"
12
+ value = var. container_insights ? " enabled" : " disabled"
13
+ }
14
+
10
15
lifecycle {
11
16
ignore_changes = [
12
17
tags
You can’t perform that action at this time.
0 commit comments