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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lambda-uploader-0.1.1.tar.gz
.
File metadata
- Download URL: lambda-uploader-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9566cef962c24fff9a2951875ad2b59ba19bca213c461ab2467b46b7fbbf8ea0 |
|
MD5 | e69eca59b2d7b4ca3d65a4e8b5bf1cc4 |
|
BLAKE2b-256 | 33da7a1e6b38a68890f75505034efdc6e4b31f3ac66b346ddf0f17c5ad41f86e |
File details
Details for the file lambda_uploader-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lambda_uploader-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ebfd8bef3988d9d40a1a0a5e21becade95bd124d8454da6517318e64c2c1c1 |
|
MD5 | 6b329737985a6e5904b9cab0ddf40f48 |
|
BLAKE2b-256 | 210b724b0db2bfc81556535d78f2c8fa5f9bd298891f797a4d383d6b29b186d0 |