A CLI which automatically uploads pip packages and directories to aws efs to be used in aws lambda
Project description
badges:
colab with example
Documentation
Quick Start
- 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.2.tar.gz
(10.3 kB
view details)
Built Distribution
efsync-0.1.2-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file efsync-0.1.2.tar.gz
.
File metadata
- Download URL: efsync-0.1.2.tar.gz
- Upload date:
- Size: 10.3 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 | 985f5e6d9ef6b44463ccdba1c3a504c871d1ec32abf6dda18cb03ed3cd5494c6 |
|
MD5 | e802397d1ad9aa2f4d5a487aff4b3b9a |
|
BLAKE2b-256 | d8f6932537c29bc032bf766e1af4e6823c38c8189e638fd92487cb614e134a44 |
Provenance
File details
Details for the file efsync-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: efsync-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.5 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 | bcb75ab351d53f064d9b8c1f912a027c35bcbec320797fee8defd48673e60edf |
|
MD5 | c598c5089b6022bd7c24846a27f99c0b |
|
BLAKE2b-256 | 1490ce83ad9da44bc6c8a8a828c77340c4596198564f082741f8066025ab4ca6 |