Install and configure the CloudWatch agent
You can create an Amazon EC2 launch template that includes CloudWatch monitoring. For more information, see Launch an instance from a launch template and Advanced details in the Amazon EC2 User Guide.
You can also install the CloudWatch agent on an existing Amazon EC2 AMI and then specify the image in the Amazon Batch first-run wizard. For more information, see Installing the CloudWatch agent and Getting started with Amazon Batch tutorials.
Note
Launch templates are not supported on Amazon Fargate resources.