How do I trigger Cloudwatch Alarm
based on output of Cloudwatch Insights
queries?
SELECT CPUUtilization
FROM SCHEMA("AWS/EC2", InstanceId)
WHERE CPUUtilization > 80
GROUP BY InstanceId
For every record in the above query output, I would like to raise an alarm.
What's the best way to do this?