jorgebastida / gordon
- пятница, 3 июня 2016 г. в 03:12:53
Python
λ Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation
Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation
Documentation: http://gordon.readthedocs.io/en/latest/
pip
,npm
, gradle
, ...)Docker
, Makefile
or... a simple shell
script.We think documentation and examples are an important pillar... so here you have a nice list of things you can play with!
Because this project doesn't introduce anything new. Gordon is just a thin layer of sugar around AWS services and few conventions, which makes deploying and wiring Lambdas really easy.
Under the hood, gordon just generates self-contained CloudFormation templates... which is great!
Why introduce yet-another framework when you can build lambdas using AWS services and tools you already know how to use (pip
, npm
, grunt
, gulp
, gradle
, Makefile
...)
Keep it simple!
Yes, we believe that there must be 100% isolation between your application stages (dev
, staging
, prod
...). That means that resources which (for example) serve a development purpose must not be related to the ones which are serving production load. Putting that to the extreme, and following AWS best practices that means using different AWS accounts. This completely clash with the suggested approach that AWS suggest you to follow with services such as apigateway, where they emphasize to have several "stages" for the same apigateway resource. We disagree and completely ignore that functionality.
Gordon keeps reproducibility and isolation at it's core. When you apply gordon projects in different stages or regions, you'll deploy completely isolated Cloudformation stacks which will contain an exact and isolated copy of all the resources you have defined.
One of the best advantages of using AWS is the fact that reproducibility is at it's core and their ecosystem is full of services which encourage it. Their flagship is CloudFormation.
Then... why not just use CloudFormation? Well, there are three reasons:
This project tries to solve these three issues by:
Yes, we eat our own dog food; We use gordon to create gordon. The idea is that, (unlike many other projects) we don't think streaming API commands to AWS is a nice solution, so instead, we fill the gaps with custom CloudFormation resources.
Those Custom CloudFormation resources are implemented using Lambdas (deployed by gordon)... crazy uh?!
Why all this madness? Again... because reproducibility. If you manage some resources using CloudFormation, and some others streaming API commands, if/when you try to reproduce or decommission your environment... you are pretty much f***.
We would love to hear as much feedback as possible! If you have any comment, please drop me an email to me@jorgebastida.com