How can I deploy an AWS Lambda function from Jenkins?
I found the solution while trying to manually deploy the Lambda function as a jar file. These are the steps -


Create your Lambda function as a Maven project using the AWS documentation.
Create your Jenkins job as a Maven project and specify package in the goals section.
Follow the Jenkins Lambda plugin documentation for deployment and specify target/your-project-1.0-SNAPSHOT.jar as the Artifact location.


This should build your Lambda function with Maven and then deploy it to AWS.