How to deploy a new lambda function from another lambda function

How would I write my hander/serverless.yml file to trigger the deployment of a new lambda function to aws. I would have a template deployment package already setup either in s3 or github