I have many glue jobs with similar job names, and I'm using Eventbridge to monitor these jobs, once a job failed, trigger lambda to send email.
below is current schema, there're too many glue jobs, the length of json exceeded the limit, so I have to create 2 rules to cover all the jobs.
Q: can I use regular expression in "jobName" ? or can I use another parameter instead of "jobName" to filter glue jobs?
{
"detail-type": ["Glue Job State Change"],
"source": ["aws.glue"],
"detail": {
"jobName": ["glue_job_1", "glue_job_2", "glue_job_3", "glue_job_4", "glue_job_5".....],
"state": ["FAILED"]
},
"region": ["ap-southeast-1"],
"account": ["xxxxxxxx"]
}
Thanks for your answer!