title: Using JenkinsFile pipeline to deploy a lambda
body: <p>I have created a JenkinsFile to load a jar file  onto AWS Lambda
  As I understand in its load the jar file into an S3 bucket, then deploy it.
  I want to stick with using a JenkinsFile loaded up into the pipeline.</p>
  <p>so far using the S3 publisher plugin, I have the following</p>
  <pre><code>stage('load artifacts to S3'){
              agent any
              steps {
                  s3Upload(bucket:&quot;deploy-lambda-s3&quot;, workingDir:'target', includePathPattern:'my-lambda.jar');
              }
          }
  </code></pre>
  <p>Now i want to use the AWS Lambda Plugin to deploy the lambda. But I cant find the method. I was hoping for something such as</p>
  <pre><code>  s3Upload(bucket:&quot;deploy-lambda-s3&quot;, FunctionName: &quot;my-lambda&quot;, LambdaName: &quot;myLambda&quot;)
  </code></pre>
  <p>I dont want to use script &quot;aws lambda&quot; i wuld prefer to use the functions provided.</p>