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?
Answering the original question. Here's a sample.
you can find a lot more at patterns within https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html. Definitely the
Content-based Filtering with Event Patterns
page like