James Grace
James Grace

Reputation: 83

How to kick off AWS Glue Job when Crawler Completes

I'm trying to figure out how to automatically kick off an AWS Glue Job when an AWS Glue Crawler completes. I see that the Crawlers send events when they complete, but I'm struggling to parse through the documentation to figure out how to listen to that event and then launch the AWS Glue Job.

This seems like a fairly simple question, but I haven't been able to find any leads so far. I'd appreciate some help. Thanks in advance!

Upvotes: 2

Views: 1951

Answers (2)

antti
antti

Reputation: 502

Use a AWS Glue Trigger.

For anything involving more than two steps, I'd recommend using AWS Glue Workflows. They are formed by chaining Glue jobs, crawlers and triggers together into a workflow that can be visualised and monitored easily.

Upvotes: 1

Lucent Xu
Lucent Xu

Reputation: 93

You can create a CloudWatch event, choose Glue Crawler state change as Event source, choose a Lambda function as Event target, and in the Lambda function you can use boto3(or other language sdk) to invoke the job to run.

Upvotes: 4

Related Questions