I have a solution but in that, I've to make an individual deply.yml for each lambda, (Like if have 10 lambdas then I've to make 10 deploy.yml for each lambda). I was wondering if this job can be done with single deploy.yml (I also tried serverless but it didn't work).
visit git repo
here you can add as many lambda functions inside a folder named "lambda" with the same name as the lambda function, and also update the function name (in for loop) in the lambda.deploy.yml.