EventBridge and Glue Workflow

0

Hi,

I don't have much expertise with EventBridge + Glue Workflow.

I do have an AWS DMS configured to migrate our database to a S3 Bucket, I want to perform ETL on the landed data.

I can enable the Event Notification to notify whenever a file is written on the bucket, and create EventBridge rules to filter by the S3 Key.

Is it possible to multiples EventBridge rules trigger the same Glue workflow passing different parameters? Or I should have one event bridge and glue workflow for each table ?

e.g.

1st Approach

/database/table1/file1.csv -> EventBridge Rule 1 -> Glue Workflow 1
/database/table2/file2.csv -> EventBridge Rule 2 -> Glue Workflow 2

vs

2nd Approach, different events share the same glue workflow but passing different parameters.

/database/table1/file1.csv -> EventBridge Rule 1 -> Glue Workflow
/database/table2/file2.csv -> EventBridge Rule 2 -> Glue Workflow

The glue job will perform deduplication and will do the upsert on a S3 bucket using the Apache Iceberg.

Marcus
질문됨 일 년 전495회 조회
1개 답변
1

Nothing prevents you from having two different rules invoking the same target, a Glue workflow in your case. You can use Input Transformer to pass different information from each rule.

profile pictureAWS
전문가
Uri
답변함 일 년 전

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

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

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

관련 콘텐츠