Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/mu
Python module and CLI to package and upload python lambda functions to AWS Lambda
https://github.com/sivel/mu
Last synced: 2 months ago
JSON representation
Python module and CLI to package and upload python lambda functions to AWS Lambda
- Host: GitHub
- URL: https://github.com/sivel/mu
- Owner: sivel
- License: apache-2.0
- Created: 2015-10-30T15:44:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T17:06:22.000Z (over 3 years ago)
- Last Synced: 2024-11-02T04:12:09.565Z (2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 25
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
mu
==Python module and CLI to package and upload python lambda functions to
AWS LambdaInstallation
------------::
pip install python-mu
Configuration
-------------You will need to have a boto profile created. This can be done using
``awscli``:::
pip install awscli
aws configureUsage
-----::
usage: mu [-h] [--with-pyc] [--zip-file ZIP_FILE] [--profile PROFILE]
[--zip-only]
[config]positional arguments:
config JSON file describing this lambda function. Default
lambda.jsonoptional arguments:
-h, --help show this help message and exit
--with-pyc Package pyc/pyo files
--zip-file ZIP_FILE Name to give ZIP file. Default lambda.zip
--profile PROFILE boto/awscli profile name. Default default
--zip-only Only create the ZIP file, do not uploadlambda.json
-----------::
{
"name": "helloworld",
"description": "Hello, World!",
"region": "us-east-1",
"role": "arn:aws:iam::000000000000:role/lambda_basic_execution",
"handler": "helloworld.lambda_handler",
"memory_size": 128,
"timeout": 3,
"py_modules": [
"helloworld"
],
"packages": {
"exclude": [
"tests",
"tests.*"
]
},
"deps": [
"requests",
"-rrequirements.txt"
],
"publish": true
}