Attach S3 Trigger

7.3 Attach S3 Trigger

At Lambda Function, select Add Trigger

  • Trigger Configuration: S3
  • Bucket: s3/sales-data-bucket-2025
  • Event types: All Objects create events Lambda Then press Add Trigger Lambda Test Lambda and Trigger
  • Add new files to S3 Lambda Lambda
  • salesdatacrawler started run Lambda
  • salesdatacrawler finished running Lambda Configure Amazon EventBridge so that other actions are also triggered after crawling data
  • Go to Amazon EventBridge home page Lambda
  • Select Create rule Lambda
  • Select Event Pattern as JSON
{
"detail": {
"crawlerName": ["salesdatacrawler"],
"state": ["SUCCEEDED"]
}
}

Lambda

  • Then configure as shown, role is LambdaRole Lambda Lambda Test again, after the first Crawl is finished, ETL will automatically run Job Lambda Lambda Lambda