Setup Container Insights on ECS

Enabling Container Insights on ECS clusters is really simple. See the documentation here for details on this - https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html

The PetAdoption application uses a ECS Fargate cluster that already have Container Insights enabled. You can verify this by executing the following command. Make sure you replace the actual cluster name with the cluster-name string

aws ecs describe-clusters --clusters <cluster-name> | jq '.clusters[0].settings'

You should see a result like the one below

[
  {
    "name": "containerInsights",
    "value": "enabled"
  }
]