If you need to enable Container Insights for an ECS cluster, by using the AWS CLI, then you can do the following:

1
2
3
4
aws ecs update-cluster-settings
    --cluster <cluster-name>  
    --settings name=containerInsights,value=enabled 
    --region <aws_region>