'AWS autoscaling group dynamic scaling in Azure DevOps agent pool based on # of jobs

I am trying to implement dynamic scaling in AWS Auto-Scaling group based on job traffic in Azure DevOps Agent pool. How can I have AWS to monitor/read the incoming jobs in Azure DevOps and scale out/in? I've looked at Cloudwatch if it can do it but not sure..



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source