Configuring CloudWatch Container Insights for Amazon ECS
You can configure Container Insights using the Amazon ECS console, the AWS CLI, API, and SDKs.
Before you configure Container Insights, perform the following operations:
-
The task definition must have a task execution role with the Container Insights permissions. For more information, see Amazon ECS task execution IAM role.
-
For clusters containing tasks or services using the EC2 launch type, your container instances must be running version 1.29.0 or later of the Amazon ECS agent. For more information, see Amazon ECS Linux container instance management.
Use the following table to determine the action to take for adding Container Insights.
Configuration for Amazon ECS resources | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Task |
Console |
AWS CLI |
API action |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Change the default for all users | Modifying Amazon ECS account settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Change the default for a specific user | Modifying Amazon ECS account settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configure Container Insights for a specific cluster | Creating an Amazon ECS cluster for the Fargate launch type Creating an Amazon ECS cluster for the Amazon EC2 launch type |