Eventbridge schema

0

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!

Cloud
질문됨 2년 전864회 조회
1개 답변
0

First, if you do not need the job name, you can remove it from the rule. If you do need you can use a Prefix to catch all the job names that starts with some text, e.g., "jobName": [ {"prefix": "glue_job_" } ].

You can find more information about the available event patterns here.

profile pictureAWS
전문가
Uri
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인