ECS Container Insights is disabled Affecting ECS service in AWS


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Monitoring/ Best Practices

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
  • Snyk IDSNYK-CC-00281
  • creditSnyk Research Team

Description

ECS Container Insights will not be enabled on the cluster and performance log events will not be collected and displayed in CloudWatch.

How to fix?

Set setting.name attribute to containerInsights, and setting.value to enabled.

Example configuration:

resource "aws_ecs_cluster" "allowed" {
  name = "test"
  setting {
    name  = "containerInsights"
    value = "enabled"
  }
}