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 1 in Java by Abhishek
• 280 points
259 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 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
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
599 views
+2 votes
10 answers

How to import a jar file in Eclipse?

To import jar file in your Eclipse ...READ MORE

answered May 15, 2018 in Java by sharth
• 3,370 points
129,373 views
0 votes
1 answer

How to remove ‘char’ from a String?

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

answered May 21, 2018 in Java by code.reaper12
• 3,470 points
73 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 24, 2018 in Java by Rishabh
• 3,580 points
99 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
2,626 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer