Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sernst/hellolambda
Example of an AWS Lambda function written in Python
https://github.com/sernst/hellolambda
Last synced: 6 days ago
JSON representation
Example of an AWS Lambda function written in Python
- Host: GitHub
- URL: https://github.com/sernst/hellolambda
- Owner: sernst
- License: apache-2.0
- Created: 2015-11-12T22:11:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T23:25:05.000Z (about 9 years ago)
- Last Synced: 2024-11-14T13:39:14.422Z (2 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HelloLambda
Example of an AWS Lambda function written in Python## Setup
### 1. configs.json
For this to work you need to create a copy of the **configs.json.template** file
called configs.json and fill in the empty values.For the *GITHUB_TOKEN* value you need to create and include a personal Github API
token. See the following link for how to do that:[https://github.com/blog/1509-personal-api-tokens](https://github.com/blog/1509-personal-api-tokens "Personal API Tokens")
### 2. Virtual Environment
Next you need to create a Python 2.7 virtual environment inside the HelloLambda
project in a folder called **venv_py27** and install the following packages:* PyGithub
* six
both can be installed using the local pip that will be created with your
virtual environment.## Deploy
To deploy this package you need to create a zip file. The **deploy.py** file is
designed to do just that. All you need to do is run:```bash
python deploy.py
```
This will create a zip file called **hello_lambda.zip**, which you can then
upload to AWS Lambda for use.