CloudWatch Container Insights can be used to collect logs from containerized workloads for analysis. This can help with auditing, performance tuning, and error checking in an Amazon Elastic Container Service (ECS) cluster. For more information on Container Insights, see the AWS documentation.
References:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights.html
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-cluster-settings.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster