AWS Lambda Function Issues

+1 vote
Hello,

  In Aws Lambda function we are made jar file include all dependency now its running in aws server,My Question is While running aws lambda function how to update new version of dependency jar and how to deploy that jar without stop aws lambda function,

 

  please can tell me any solution,
Sep 13, 2018 in AWS by vamc
• 130 points

recategorized Sep 14, 2018 by Vardhan 479 views

2 answers to this question.

0 votes

AWS Lambda lets you select a runtime at the time of creation of that lambda function, or later you can change it again. 
So, Create a separate Lambda with the Jar file that you want to run having different dependency and then you can trigger that lambda function from your current lambda function if that's what you ultimately want.

answered Sep 14, 2018 by bug_seeker
• 15,520 points
0 votes

If you have created AWS Lambda Deployment JAR Using Maven, you can use the Versions Plugin, very useful but not-so-well-known Maven plugin. The Versions plugin, as the name suggests, helps you manage versions in your Maven projects. Versions of your dependencies and of your plugins as well.

You can use versions:display-dependency-updates command which will list the dependencies you are currently using, and which ones are due for an update. Then to update the outdated ones you can use mvn versions: set command to go ahead and update versions in pom.xml files.

Finally, once your happy with your new versions, use mvn versions:commit to set your changes in stone. This removes the backup files that the Versions plugin has been keeping, just in case.

If you want to know more search for Versions Plugin. Hope this helped.

answered Sep 14, 2018 by datageek
• 2,530 points

Related Questions In AWS

0 votes
4 answers

Renaming AWS Lambda function

Nope- the function name is immutable READ MORE

answered Mar 7, 2019 in AWS by anonymous
13,153 views
0 votes
1 answer
0 votes
1 answer

How to link AWS Lambda function to Amazon CloudWatch ?

In order to create Log Group and ...READ MORE

answered Jul 20, 2018 in AWS by datageek
• 2,530 points
1,323 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
+3 votes
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP