Please provide step by step guide including code modifications (e.g. lambda handler) to be able to run this as AWS Serverless function. Thank you.