aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

multiple Lambda Functions in one project

Open Sipsip opened this issue 6 years ago • 4 comments

I created a "Lambda Java Project" (including Handler Class A) via the toolkit and later I created another Lambda Function (Handler B) within that project. Now when I run+upload Handler B it will change the configs on my aws-console, so that both Lambda Functions on aws cloud run the code of Handler A.

This seems to be an Issue within the file com.amazonaws.eclipse.lambda.project.json

Is it allowed to have multiple Handlers within one project and if yes, how do I solve my problem?

Sipsip avatar May 04 '18 11:05 Sipsip

Yes, it is allowed to have multiple Handlers in one project. I cannot reproduce this problem. Can you provide the version for your plugin?

zhangzhx avatar May 24 '18 20:05 zhangzhx

I face the same problem, when I create multiple functions within a AWS Lambda Java project. Each time I click "Upload function to AWS Lambda", AWS Lambda function is updated with the code of the 1st class when project is newly created. Hope this issue will be fixed soon!

e4ustudio avatar Jun 21 '18 03:06 e4ustudio

I still couldn't reproduce the issue. Did you select the handler correctly when uploading the new Lambda function to AWS?

zhangzhx avatar Feb 13 '19 02:02 zhangzhx

I am facing the similar issue. I had function 1 being run as schedules job successfully. I added new function in the same project. Everytime I upload + run function from eclipse it runs the new function even if I click on Test for the first function. So I ended up spoiling the already working function. Will teh test alwasy trigger the latest one?

apathan123 avatar Jan 31 '20 06:01 apathan123