You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have constructed a glue workflow and I want to trigger it whenever a file arrives in S3. I am able to write code to create the event but, I am not finding glue_workflow inside the aws_events_targets package. I use python. How to I trigger a glue workflow from s3 cloud trail Write Objects event?
If this is not yet supported, is there an example of writing boto3 code to supplement the CDK code within the construct or app.py? I want to avoid a manual step to add a target to the CDK created event.
Here is my code so far:
def _create_s3_event(self):
s3.Bucket.from_bucket_name(
constants.data_lake.raw_bucket_name
).on_cloud_trail_write_object(
self,"fidelity_transaction_report_uploaded",
paths=[constants.fidelity.raw_files_s3_path],
target=targets.HERE, I NEED MY GLUE WORKFLOW
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have constructed a glue workflow and I want to trigger it whenever a file arrives in S3. I am able to write code to create the event but, I am not finding glue_workflow inside the aws_events_targets package. I use python. How to I trigger a glue workflow from s3 cloud trail Write Objects event?
If this is not yet supported, is there an example of writing boto3 code to supplement the CDK code within the construct or app.py? I want to avoid a manual step to add a target to the CDK created event.
Here is my code so far:
Beta Was this translation helpful? Give feedback.
All reactions