The Amazonica test for the AWS Lambda API ([link](https://github.com/mcohen01/amazonica/blob/master/test/amazonica/test/lambda.clj)) shows a simple example of creating a Lambda function from a Javascript blob (`role` is an ARN string for a role that can create Lambdas):

```
(def handler "exports.helloWorld = function(event, context) {
                  console.log('value1 = ' + event.key1)
                  console.log('value2 = ' + event.key2)
                  console.log('value3 = ' + event.key3)
                  context.done(null, 'Hello World')
                }")

(create-function :role role :function handler)

```

Does anyone know if `create-function` can create a Lambda from a jar? Would simply passing a file stream or a binary string of the jar to `create-function` be a bad idea, even if it did work?

I suppose I could just use a bash script with the AWS CLI to create a Lambda from a jar, but first I wanted to check if there is a known straightforward method of doing this in Clojure.

Another option would be to upload the jar to an S3 bucket and then let a CloudFormation script deploy it, based on the example [here](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#d0e62987). It seems a little silly though, to have an S3 bucket just to hold build artefacts, when Lambda will be storing them itself.