Search code examples
gitamazon-web-servicesaws-lambdaworkflow

how to have multiple lambda function in single git repo and create a CI/CD pipeline for the same


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).


Solution

  • 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.