I am trying to write a custom CloudWatch Event Pattern that will trigger an SSM Run Command. The problem I am having is I am not sure how I am supposed to write this event pattern. I've looked at the documentation and I am just not understanding how to do this. The documentation gave an example such as:
{
"source": [ "aws.ec2"]
}
which will watch for all events from the EC2 service, that I understand. But how would I watch for, say... a specific message in a CloudWatch Logs Log Group?