Search code examples
amazon-web-servicesamazon-s3aws-glue

Event based trigger of AWS Glue Crawler after a file is uploaded into a S3 Bucket?


Is it possible to trigger an AWS Glue crawler on new files, that get uploaded into a S3 bucket, given that the crawler is "pointed" to that bucket? In other words: a file upload generates an event, that causes AWS Glue crawler to analyse it. I know that there is schedule based crawling, but never found an event- based one.


Solution

  • No, there is currently no direct way to invoke an AWS Glue crawler in response to an upload to an S3 bucket. S3 event notifications can only be sent to:

    • SNS
    • SQS
    • Lambda

    However, it would be trivial to write a small piece of Lambda code to programmatically invoke a Glue crawler using the relevant language SDK.