Coder Social home page Coder Social logo

luiscostalmeida / lambda.service.skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moesy/lambda.service.skeleton

0.0 0.0 0.0 44.97 MB

A skeleton for deploying python microservices on AWS Lambda.

License: MIT License

Python 17.40% HCL 65.66% Makefile 16.94%

lambda.service.skeleton's Introduction

Build Status codecov

Lambda Service Skeleton

A skeleton application for deploying microservices on AWS Lambda.

This template aims to reduce the pain inherent in deploying services to AWS Lambda. By using a virtual environment locally we are able to isolate package resources from our global environment and ship them along with our payload to lambda since as of this time a package manager is not included with the service.

=====================================

  • Declare required binaries in requirements.txt
  • Build your application in the app/ directory
  • edit every file that ends in variables.tf inside of infrastructure/
  • Prepare deploy package

Prerequesites

  • [sudo] pip install virtualenv
  • sudo pip install awscli --ignore-installed six
  • Install Terraform https://www.terraform.io

Installation

  • clone repo
  • edit variable.tf files in infrastructure/
  • begin building your application in app/
  • set your dependencies in requirements.txt

Commands

  • make lambda_package: Prepare the Lambda Deployment package infrastructure/lambda/package.zip
  • make deploy_test: Preview changes to AWS Infrastructure
  • make deploy: deploy service to AWS (must run lambda_package first)
  • make run: run your application locally (no need to be in the venv)
  • make houston: run nose unit tests

MANUAL DEPLOY

If you do not want to use terraform or prefer the GUI for any other reason simply upload the payload using the browser and the AWS Console.

lambda.service.skeleton's People

Contributors

moesy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.