AWS Python Lambda Packager
Project description
# lambda-uploader
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:
```json
{
"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
```shell
lambda-uploader ./myfunc
```
If you would prefer to upload another way you can tell the uploader to ignore that step.
```shell
lambda-uploader --no-upload ./myfunc
```
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:
```json
{
"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
```shell
lambda-uploader ./myfunc
```
If you would prefer to upload another way you can tell the uploader to ignore that step.
```shell
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
lambda-uploader-0.0.2.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file lambda-uploader-0.0.2.tar.gz
.
File metadata
- Download URL: lambda-uploader-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e358d8950c99f265e5f6ea679d6b6749abfa619e7cc9d8bdccb28a468941ab |
|
MD5 | f709c472bd6e1bcb8dd5e4e6c94653a0 |
|
BLAKE2b-256 | 5d6b2d512c36d0a56ae68bd953d749b535cf7073e505e58867bfbc3184d58ec2 |
File details
Details for the file lambda_uploader-0.0.2-py2-none-any.whl
.
File metadata
- Download URL: lambda_uploader-0.0.2-py2-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675b43b8c35a8dd19278d0fa7e744b67aea0fc749487f9cde2b37718a4712d2f |
|
MD5 | f33076b8484313f44d671141987f4965 |
|
BLAKE2b-256 | 531cba23ec5da167fc7e9bc33838c7d5c065d382dd3099f788f627943be1331e |