Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicor88/aws-python-lambdas

Collection of AWS Lambda functions in Python
https://github.com/nicor88/aws-python-lambdas

aws aws-lambda boto3 conda python python-3-6

Last synced: 2 days ago
JSON representation

Collection of AWS Lambda functions in Python

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/nicor88/aws-python-lambdas.svg?branch=master)](https://travis-ci.org/nicor88/aws-python-lambdas)

# 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