A CLI which automatically uploads pip packages and directories to aws efs to be used in aws lambda
Project description
badges:
[](https://colab.research.google.com/drive/1G4LTw7aW5CBlFHVeiR12r5_49Z_CcEIo?usp=sharing ]
colab with example
Documentation
Quick Start
Example in Google Colab. [](https://colab.research.google.com/drive/1G4LTw7aW5CBlFHVeiR12r5_49Z_CcEIo?usp=sharing ]
- Install via pip3
pip3 install efsync
- sync your pip packages or files to AWS EFS
efsync -cf efsync.yaml
Examples
CLI Example with efsync.yaml
sync your pip packages or files to AWS EFS
efsync -cf efsync.yaml
CLI Example with parameter
sync your pip packages or files to AWS EFS
efsync -r requirements.txt -py 3.8 -epd lib -fd tmp -ap schueler -ar eu-central-1 -sbd <subnet_id> -ekn <ec2-key-name>
SDK Example with efsync.yaml
create an configuration file efsync.yaml
# lambda ci python version for pip installation
python_version: 3.8
# pip directory
efs_pip_dir: lib
# extra directory for file upload like ML models
file_dir: dir
# requirements file
requirements: requirements.txt
# aws profile configuration
aws_profile: efsync
aws_region: eu-central-1
#aws vpc and ec2 shit
subnet_Id: subnet-xxx
ec2_key_name: efsync-asd913fjgq3
- sync your pip packages or files to AWS EFS
from efsync import efsync
efsync('efsync.yaml')
CLI
cli_short | cli_long | default | description |
---|---|---|---|
-h | --help | - | displays all commands |
-r | --requirements | requirements.txt | path of your requirements.txt |
-cf | --config_file | - | path of your efsync.yaml |
-py | --python_version | 3.8 | Python version used to install dependencies |
-epd | --efs_pip_dir | lib | directory where the pip packages will be installed on efs |
-fd | --file_dir | tmp | directory where all other files will be placed |
-ap | --aws_profile | efsync | name of the used AWS profile |
-ar | --aws_region | eu-central-1 | aws region where the efs is running |
-sbd | --subnet_Id | - | subnet id of the efs |
-ekn | --ec2_key_name | - | temporary key name for the ec2 instance |
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
efsync-0.1.3.tar.gz
(10.6 kB
view details)
Built Distribution
efsync-0.1.3-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file efsync-0.1.3.tar.gz
.
File metadata
- Download URL: efsync-0.1.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec111aa715f774c599802f96f06240859a91e046cc9a73104afe4dfa2b30f59 |
|
MD5 | 6008b0e2e062cc5e21192031a9f43ccf |
|
BLAKE2b-256 | d60747fb6f3f60cd83b1e4d19aa3f74597d78fc653f081848c2debcfd3b032ea |
Provenance
File details
Details for the file efsync-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: efsync-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a0a37a80b4f5104bc35daf3a4ab122115094316c751f8c3494dc9a9e2e6fc6 |
|
MD5 | 9a3a8787da14a514aff9539fc2297fde |
|
BLAKE2b-256 | 017f89d5e7d498c9ca9f793d94be204ea8f71779e19b49901bfe3f38eebe0d84 |