Using serverless for managing a machine learning workflow

Hi Everyone,

This may be a totally obvious question, but I can’t find the answer anywhere. I’m trying to see if the following pipeline is possible with serverless.

Generate a machine learning .pkl file, lambda function handler file, a data file and compress into ‘function.zip’.

Upload function.zip to an s3 bucket.

Have a lambda function pick up on the new file from a new serverless deploy. The lambda function should then take the .zip file and unzip it on the lambda.

Is this doable with serverless? I’m able to replicate this workflow with Terraform, but I’m not confident if this is possible with serverless.

Thanks for the help!