Manage aws layers
Project description
Python-layer
The python-layer is a script inspired from python-lambda that can help managing aws layers. There are 5 available commands with options.
Requirements
- Python 3
- GNU Linux
Installation
You can create a new virtual environment on your computer and then install python-layer via pypi.
pip install python-layer
Getting Started
The script searches in a directory for the requirements.txt
file and creates a zip with all the dependencies. If there are .py
files, they are included in the zip.
To create a new layer:
layer build path/to/mydir
Here we suppose that mydir
has at least the requirements file.
To deploy the layer to aws:
layer deploy -d myshortdescription --runtime python3.7
To list the available layers:
layer list
To set a layer to a lambda function (latest version of the layer):
layer set mylayer mylambda
To download a layer
layer download mylayer
Notes
- Currently the script uses the credentials from the
~/.aws/config
file.
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
Built Distribution
File details
Details for the file python-layer-1.0.1.tar.gz
.
File metadata
- Download URL: python-layer-1.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e03103bb7de421f2f1bee8233d0c45a54545f4c877c3d2064b9e25a27f193b8d |
|
MD5 | b66c3bdd7b96da3f72f3a12190baf5fd |
|
BLAKE2b-256 | ec2a9cf7ead1a3f7174404b5aaf13cb602c8817cb7e9e861d7a8f84dd657a8ca |
File details
Details for the file python_layer-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_layer-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c21deda2809c984c8c3fb514c95c638bd8824a8be607b86c78210af339e0e69 |
|
MD5 | 5d02b74fb69887589330e843d9f7d684 |
|
BLAKE2b-256 | 9489c3b7da6c414e7c1b20deb19468acc847b8b9ea3115f1dd19c6a8a9afc057 |