Skip to content

nicor88/aws-python-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

aws-python-lambdas

Collection of python lambda function

Setup Conda Env

# create env
conda create --name aws-python-lambdas python=3.6.2
# activate env
source activate aws-python-lambdas
pip install boto3
pip install pytest
# install libs from the requirements of each single lambda
for i in src/*/; do pip install -r $i"requirements.txt"; done

Structure

└── src/
    ├── hello_world_lambda
    │    ├── __init__.py
    │    ├── requirements.txt
    │    └── lambda_function.py
    └── lambda_function_test_
         ├── __init__.py
         ├── requirements.txt
         └── lambda_function.py            

Where:

  • requirements.txt: contains the libs needed by the lambda
  • lambda_function.py contains the lambda handler
def lambda_handler(event, context):
    something = 'hello_world'
    return something

Releases

No releases published

Packages

No packages published