Skip to content

Glue Crawler Events are not being detected by EventBridge Rules

0

My existing automation is configured to trigger AWS Lambda function using EventBridge Rule upon successful Glue Crawler run execution. However, my Event Rule is not capturing Crawler execution. Attached Event Rule below. I tried with SUCCEEDED state value as well just to rule out case-sensitive issue. Please assist me.

Automation Flow : Glue Crawler->Triggers Event Rule upon succcessful execution->Triggers Lambda->Start another Glue Job

{ "detail": { "crawlerName": [ "abc_crawler" ], "state": [ "Succeeded" ] }, "detail-type": [ "Glue Crawler State Change" ], "source": [ "aws.glue" ] }

1 Answer
0

I've looked at your EventBridge rule configuration for the Glue Crawler events, and your pattern actually looks correct:

{ 
  "detail": { 
    "crawlerName": [ "abc_crawler" ], 
    "state": [ "Succeeded" ] 
  }, 
  "detail-type": [ "Glue Crawler State Change" ], 
  "source": [ "aws.glue" ] 
}

This matches the expected format for capturing Glue Crawler state changes. Since the format seems right, we need to look at the metrics to understand where things might be breaking down.

Could you check the following EventBridge metrics to help us narrow down the issue:

  • Invocations
  • MatchedEvents
  • SuccessfulInvocationAttempts
  • TriggeredRules

If these metrics show activity, then the events are reaching EventBridge and being processed to the target. In that case, we'd need to look at your Lambda function to see why it's not completing the workflow.

On the other hand, if you're seeing FailedInvocations in the metrics, the issue is likely on the source side - possibly with how the Glue Crawler is emitting events.

One thing that might help troubleshoot is configuring a Dead Letter Queue (DLQ) for your target. You can do this under the Additional Parameters section when configuring your target. This would capture any events that couldn't be processed successfully and give us more insight.

Let me know what you find, and we can take it from there.

AWS
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.