A tool for deploying Python projects to AWS Lambda.
Project description
A tool for deploying Python projects to AWS Lambda.
Usage
Usage: awslambda [OPTIONS] SOURCE_DIR S3_BUCKET Deploy Python code to AWS lambda. Zips the contents of the source directory together with optional pip requirements. The archive is temporarily uploaded to an S3 bucket and used to create or update lambda functions. Reference handlers from your source directory like you would in any Python module-tree (e.g. mymodule.myhandler, mymodule.mysubmodule.myhandler, etc.). Roles are ARNs like "arn:aws:iam::xxxxxxxxxxxx:role/myrole" YAML file entries for the sync option map function names to handlers and roles: myLambda: handler: mymodule.myhandler role: arn:aws:iam::xxxxxxxxxxxx:role/myrole Options: -r, --requirements PATH pip compatible requirements file. Will be included in the archive. -c, --create NAME HANDLER ROLE Create a new lambda function. Example: --create myLambda mymodule.myhandler myrole -u, --update NAME Update a lambda function. -d, --delete NAME Delete a lambda function. -s, --sync FILENAME Keep lambdas defined in YAML file in sync with deployed lambdas. --help Show this message and exit.
Getting started
Authentication is left to boto3 so you can set it up just like the regular AWS CLI. You need an S3 bucket for temporary storage. For a quick tutorial on execution roles, see the official docs .
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
awslambda-1.0.4.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for awslambda-1.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02aa9a85c572d8be11ddccd0cac125fad2551cf510298ef8dbb62b4ccedec9cb |
|
MD5 | bc1720163a8e8f0d0cd7dfd37920a8bd |
|
BLAKE2b-256 | 3adc20c1772962f4bbc039456cbe8a83295db044f6e456a6fc6bb55cefe0e485 |