How to automatically deploy a jar from s3 to aws lambda

0 votes
I am using java for AWS Lambda. So I want to automatically deploy a jar to my AWS Lambda function.
Apr 2, 2020 in Java by Abhishek
• 280 points
4,584 views

1 answer to this question.

0 votes

You could probably create a lambda function that will download the jar and use the jar to create / update the lambda function.

You can configure the new lambda function with permissions to read your S3 bucket and to deploy code on Lambda.

Check this out to  create a lambda function that would be triggered by S3 events. Lambda API  can be used by your lambda function to update its code.

answered Apr 2, 2020 by Jake

Ok so let me explain it in detail.

My Game Plan would be:
Part 1:
Here I want that as i build my project using Git, my script should pick that jar and upload it in S3 bucket.
This I want to achieve by Bamboo (Atlassian products).
Kindly provide script/link for it.

Part 2:
1.Once jar has been uploaded to S3, one S3Event will trigger to Lambda function(keep it name S3LambdaFunction).
2. And it will upload this Jar to my existing main Lambda function.
3. But this jar would be environment specific. Like may be for Dev, QA, Prod (jar_DEV, jar_QA, jar_PROD).
4. So I would have 3 different main Lambda function (mainLambdaFunction_DEV, mainLambdaFunction_QA, mainLambdaFunction_PROD).
5. So I want to upload that jar (say jar_DEV) into that main function (say mainLambdaFunction_DEV) accordingly to that environment (say Dev). Need to check whether we can call 3 Lambda function into One Lambda Function to upload the jar.
6. This I want to achieve by AWS JAVA sdk.
Kindly provide java code/Link for it.

Hey, @Abhishek,

Regarding your query, I guess this will be helpful. https://www.youtube.com/watch?v=dcfzFn5tfAs

Related Questions In Java

+1 vote
1 answer

How to get Alias name of AWS Lambda function from java code?

Hey @Abhishek, you could probably use the ...READ MORE

answered Apr 1, 2020 in Java by Sirajul
• 59,230 points
2,247 views
0 votes
1 answer

Is it possible to run a java program from command line on windows?How?

  Let's say your file is in C:\myprogram\ Run ...READ MORE

answered Apr 18, 2018 in Java by sophia
• 1,400 points
2,689 views
+5 votes
11 answers

How to import a jar file in Eclipse?

Click on File > Import. The Import ...READ MORE

answered Aug 23, 2018 in Java by Daisy
• 8,140 points
359,838 views
0 votes
1 answer

How to remove ‘char’ from a String?

Hi...here you can try using the overloaded ...READ MORE

answered May 22, 2018 in Java by code.reaper12
• 3,500 points
699 views
0 votes
1 answer

How to download and save a file from Internet using Java?

public void saveUrl(final String filename, final String ...READ MORE

answered May 25, 2018 in Java by Rishabh
• 3,620 points
916 views
0 votes
1 answer

How to run a JAR file in Java?

The command given below will help you ...READ MORE

answered Jun 1, 2018 in Java by Parth
• 4,640 points
7,426 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
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