You can do this with AWS Lambda Power Tuning utility from Alex Casalboni
Ultimately, I wanted to build a service that anybody could quickly configure and deploy to optimize any Lambda Function. The technical objectives were to keep it quick, realistic, language agnostic, and easy to deploy. That’s why I chose the Serverless Framework, so I didn’t have to reinvent the wheel. I also chose AWS Step Functions to orchestrate my Lambda Functions and design a solution via visual workflows.
Read the full article here.