Set up a Windows instance with one of the affected agent versions
Configure the legacy CloudWatch plugin using the "AWS-ConfigureCloudWatch" document
Restart the agent on the host
Notice with each restart there is an additional AWS.CloudWatch.exe process running which consumes host CPU and makes additional calls to CloudWatch API
This issue was due to an GoLang upgrade that broke our existing mechanism to kill the existing AWS.CloudWatch.exe processes (https://github.com/golang/go/issues/51151)
Steps To Reproduce:
This issue was due to an GoLang upgrade that broke our existing mechanism to kill the existing AWS.CloudWatch.exe processes (https://github.com/golang/go/issues/51151)
This issue is fixed in Agent version 3.1.1045.0 and above. Guidance is to upgrade the Agent version to 3.1.1045.0 or greater and also migrate from the legacy CloudWatch Plugin to the supported CloudWatch Agent (Migration Instructions: https://docs.aws.amazon.com/systems-manager/latest/userguide/monitoring-cloudwatch-agent.html#monitoring-cloudwatch-agent-migrate)