Based on CloudWatch logs I have created a metric using a Metric Filter.
Based on this metric I created an Alarm. The alarm is triggered when the count goes more than 3 through alert. Now if the alarm is triggered I would like to run a script.
How would I trigger the script what AWS service would I use?
One additional use case: I need to read the logs that triggered the alarm so that the script can get more information and act according to the information provided.