@Vamsi Reddy while lambda is the cleanest option, if you don't want to implement AWS Lambda with trigger, boto3 also has waiter abstraction that allows your code to wait until the file arrived - you could build something like this into your Prefect task (only the last 2 lines are interesting):