In Prefect 3.x, there is support for custom event triggers, which can be set up to respond to various external events, though specific native support for S3 "createObject" events isn't explicitly outlined in the standard documentation. However, Prefect allows for integrations with other systems and can generally be configured to respond to external triggers like those from S3 by using a combination of event listeners or webhooks that pass data to Prefect-specific endpoints, thus initiating flows.
Here's a conceptual approach you might consider for integrating such functionality:
1.
S3 Event Setup: Configure your S3 bucket to send notifications to an AWS Lambda function, SNS topic, or SQS queue when an object is created.
2.
Trigger with Webhooks or an API: Use a webhook or AWS service (like Lambda) to send an HTTP request to trigger a Prefect flow via its API. This action can be set up to include necessary details to trigger specific flows and pass parameters.
3.
Prefect Flow Configuration: In Prefect, create a flow that listens for these webhook calls and starts execution based on the HTTP request data.
For detailed setup and custom event triggers, you might want to check resources or community plugins related to integrating AWS services with Prefect or consult the
Prefect Events Documentation.
So, in essence, yes, it’s possible! Though, you might need a bit of creativity and some AWS glue (not the literal AWS Glue service; just metaphorical).