using boto3 how can i set up an eventbridge to start a glue job when a crawler completes

0

I saw the sample implementation for scheduled event calling lambda function at https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/python/example_code/lambda/scheduled_lambda.py

I need to invoke lambda function when a crawler completes using boto3.

thanks, Ravi.

질문됨 일 년 전358회 조회
1개 답변
0

In this case, you might be better off to use a Step Functions workflow. That will allow you to orchestrate running the crawler, then running the job (or whatever else you need to) after.

This blog post might help get you started: https://aws.amazon.com/blogs/compute/orchestrating-aws-glue-crawlers-using-aws-step-functions/

Sample code to go with it here: https://github.com/aws-samples/aws-stepfunctions-examples/tree/main/sam/demo-manage-glue-crawlers-with-step-functions

And if you want to run this whole thing on a schedule, you can do that using the Events property on the AWS::Serverless::StateMachine resource.

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-statemachine.html#sam-statemachine-events

AWS
답변함 일 년 전

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

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

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

관련 콘텐츠