https://github.com/tomohiro/apex-python-boilerplate
Python meets Lambda - Apex Python Boilerplate for AWS Lambda function
https://github.com/tomohiro/apex-python-boilerplate
apex aws lambda python
Last synced: 6 months ago
JSON representation
Python meets Lambda - Apex Python Boilerplate for AWS Lambda function
- Host: GitHub
- URL: https://github.com/tomohiro/apex-python-boilerplate
- Owner: tomohiro
- License: mit
- Created: 2016-02-16T10:18:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T22:38:53.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T10:23:52.209Z (over 1 year ago)
- Topics: apex, aws, lambda, python
- Language: Ruby
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Apex Python Boilerplate for AWS Lambda function
================================================================================
Requirements
--------------------------------------------------------------------------------
- Python 2.7 (Recommend [yyuu/pyenv: Simple Python version management](https://github.com/yyuu/pyenv))
- pip
- virtualenv
- Ruby 2.3.1 (Recoomend [rbenv/rbenv: Groom your app’s Ruby environment with rbenv](https://github.com/rbenv/rbenv))
- RubyGems
- Bundler
- Terraform
Getting Started
--------------------------------------------------------------------------------
### Initialize an Apex project
Install dependencies:
```sh
$ pip install -r requirements.txt
$ bundle install --path vendor/bundle
```
Create IAM role to execute lambda functions:
```sh
$ apex infra plan # Dry-run
$ apex infra apply # Apply changes
```
Development AWS Lambda functions
--------------------------------------------------------------------------------
### Create a function
Move to the `example` function directory:
```
$ cd functions/example
```
Install dependencies:
```sh
$ make deps
```
### Testing
```sh
$ make test
```
### Deploy
```sh
$ apex deploy example --chdir ../../ --log-level debug
```
### Project testing
Run all tests:
```sh
$ bundle exec rake spec
```
LICENSE
--------------------------------------------------------------------------------
© 2017 Tomohiro TAIRA.
This project is licensed under the MIT license. See [LICENSE](LICENSE) for details.