rackerlabs / lambda-uploader

Helps package and upload Python lambda functions to AWS
Apache License 2.0
271 stars 56 forks source link

Uploading non-python functions #109

Closed MoOmEeN closed 8 years ago

MoOmEeN commented 8 years ago

New option --no-build that allows to skip building the package and new config files to specify function runtime. Can be used to upload non-python functions. For example:

{
  "name": "trigger",
  "runtime": "java8",
  "description": "Triggers articles extraction",
  "region": "eu-west-1",
  "handler": "com.keendly.trigger.LambdaHandler::handleRequest",
  "role": "arn:aws:iam::xxxxxxxx:role/lambda_s3_exec_role",
  "timeout": 60,
  "memory": 256
} 

together with lambda-uploader --no-build will take lambda_function.zip from project directory and upload as java function. By default the runtime is set to python2.7 so the change is fully backwards compatible.

MoOmEeN commented 8 years ago

https://github.com/rackerlabs/lambda-uploader/issues/104

jarosser06 commented 8 years ago

Looks good I just want a little documentation on the create_package function. Thank you for your contribution.