简体   繁体   中英

Handling same function names in multiple AWS Lambdas

I have a BitBucket repo which holds code for multiple lambda functions in separate folders. In two of the folders (belonging to separate lambdas), I'm using a same Python function name which has different number of arguments on different lambdas.

This is being identified by Sonar as a bug.

How do I handle my lambdas in such a scenario? Changing the name of the function in either of the lambdas is difficult to implement as I have references to this function from multiple places. Can I edit my Sonar ruleset to accomodate these cases?

Personally I would do a separate SQ project for each lambda, so that SQ does not mix up code belonging to different projects. My own best practice is that SQ should reflect the code that you build, not the code that you store (ie create SQ projects by projects outcome, not by Git repositories).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM