aws-ecs-container-insights-off¶
Ensure container insights are enabled on ECS cluster
Examples¶
Insecure Example
resource "aws_ecs_cluster" "enable" {
name = "test"
setting {
name = "containerInsights"
value = "disabled"
}
}
Resources:
ECSCluster:
Type: 'AWS::ECS::Cluster'
Properties:
ClusterName: 'insightsCluster'
ClusterSettings:
- Name: 'containerInsights'
Value: 'disabled'
Secure Example
resource "aws_ecs_cluster" "enable" {
name = "test"
setting {
name = "containerInsights"
value = "enabled"
}
}
Resources:
ECSCluster:
Type: 'AWS::ECS::Cluster'
Properties:
ClusterName: 'insightsCluster'
ClusterSettings:
- Name: 'containerInsights'
Value: 'enabled'