Skip to main content

AWS Python Lambda Packager

Project description

Provides a quick command line utility for packaging and publishing Python AWS Lambda functions. This is a work in progress and pull requests are always welcome.

Installation

The latest release of lambda-uploader can be installed via pip:

pip install lambda-uploader

An alternative install method would be manually installing it leveraging setup.py:

git clone https://github.com/rackerlabs/lambda-uploader
cd lambda-uploader
python setup.py install

Configuration File

The lambda uploader expects a directory with, at a minimum, your lambda function and a lambda.json file. It is not necessary to set requirements in your config file since the lambda uploader will also check for and use a requirements.txt file.

Example lambda.json file:

{
  "name": "myFunction",
  "description": "It does things",
  "region": "us-east-1",
  "handler": "function.lambda_handler",
  "role": "arn:aws:iam::00000000000:role/lambda_basic_execution",
  "requirements": ["pygithub"],
  "timeout": 30,
  "memory": 512
}

Command Line Usage

To package and upload simply run the command from within your lambda directory or with the directory as an option.

lambda-uploader ./myfunc

If you would prefer to upload another way you can tell the uploader to ignore the upload. This will create a package and leave it in the project directory.

lambda-uploader --no-upload ./myfunc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lambda-uploader-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

lambda_uploader-0.1.0-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lambda-uploader-0.1.0.tar.gz.

File metadata

File hashes

Hashes for lambda-uploader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c9460fe188fc9d2e0a98bc068745dd2a96f96c9bce71b8bea3fbc718c6e7fc5
MD5 652f0b9852a6ccef0d8bc2d8368b4d74
BLAKE2b-256 b3366a7e3ce927b8ee744ca7e41a80fcb4eaf0416a856d98917e7c55d96a364a

See more details on using hashes here.

File details

Details for the file lambda_uploader-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_uploader-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efed839760ae9d96cf6c7acbd75dae103aee3768377d7f0a11ed3556cfbf7830
MD5 d66332550633a0c848a5eb2adbb2f35e
BLAKE2b-256 bf4df545a8b4cd137bdbb392011dbf20ad0e5a86abfd25a3a068fbbd6d0660f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page