News for hackers. Stuff that matters.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by m_mueller on Thursday June 02, 2016 @07:24AM (#11821663)
Is the name a reference to Half-Life / Gordon Freeman due to its lambda complex level?
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by pierrec on Thursday June 02, 2016 @08:21AM (#11821883)
>due to its lambda complex level

No need to look so far. The logo for Half-Life was always the Greek letter lambda (certainly because it's often used in physics and chemistry to represent the decay constant, which is a simple function of half-life). And that level is probably just named in keeping with the game's identity.

I still remember when my chemistry teacher first drew a lambda on the chalkboard and said "this will give us the half-life". I felt like all the pieces finally came together in my life.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by marxidad on Thursday June 02, 2016 @11:41AM (#11823382)
Half Life one confirmed
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by fapjacks on Thursday June 02, 2016 @03:28PM (#11825341)
Heh! Here, have an upvote.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by m_mueller on Thursday June 02, 2016 @08:33AM (#11821937)
I always thought that Half-Life's logo is from that level. I think in the game it's first used in that context.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by mej10 on Thursday June 02, 2016 @01:23PM (#11824322)
in the equation for calculating half-life, lambda represents the decay constant.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by qwertyuiop924 on Thursday June 02, 2016 @12:16PM (#11823734)
Yes. It's adorable. Now all we need is an open-source service compatible with AWS lambda that can run on your own servers. We could call it... freeman.

Yes, I know that defeats the point of using lambda, but I felt the joke was worth it.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by pnathan on Thursday June 02, 2016 @02:19PM (#11824817)
> Yes. It's adorable. Now all we need is an open-source service compatible with AWS lambda that can run on your own servers. We could call it... freeman.

i would like to see an libre software serverless service. one huge concern of AWS Lambda is being locked into AWS's goodwill.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by ewindisch on Thursday June 02, 2016 @02:36PM (#11824955)
Check out LeverOS (no affiliation) https://github.com/leveros/leveros

Also, I just had the thought that a crowbar is a type of lever... not sure if that was intended or not?

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by qwertyuiop924 on Thursday June 02, 2016 @03:18PM (#11825254)
If somebody builds a security module for lambda (an automated security test suite, or a pentest aid), it SHOULD be called crowbar.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by neo2001 on Thursday June 02, 2016 @07:26AM (#11821670)
Oh yes there is :D
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by johnwheeler on Thursday June 02, 2016 @12:46PM (#11823985)
Starred. This looks fantastic. I've been exploring lambda deployment options for my new Alexa skills kit library, since Amz pushes lambda.

https://github.com/johnwheeler/flask-ask.

Can you please explain any differences over Zappa and if you're deploying flask?

Oh, and the project name is oh so damn cool.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jedberg on Thursday June 02, 2016 @01:30PM (#11824383)
If you're interested in dirt simple Lambda deployment, check out Kappa[0], written by the same person as boto.

Gordon looks interesting and I'm definitely going to check it out, but from what I can tell, one of the downsides is that it uses CF.

Don't get me wrong, I love CF for it's reproducibility, but waiting for a CF stack to run on every deploy will be frustrating for rapid iteration. CF is great for managing your infrastructure once you have a good idea of how it should look and aren't making constant changes anymore.

I suspect my workflow will be something like using Kappa while I'm iterating, and then using Gordon for the final deployment once it looks like everything is working as expected.

[0] https://github.com/garnaat/kappa

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by Leon on Thursday June 02, 2016 @01:48PM (#11824524)
Can Kappa support custom versions and aliases? That's been one thing I haven't seen able to be controlled via kappa config or command line, and it's been the reason I haven't used it.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jedberg on Thursday June 02, 2016 @02:22PM (#11824848)
It doesn't support custom versions and aliases yet. Curious what your use case is.

It sort of does custom aliases by giving the function an alias with the environment name, but that probably isn't what you want.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by Leon on Thursday June 02, 2016 @06:15PM (#11826545)
I've got multiple lambda functions that need to be associated with each other for an AWS Simple Work Flow. For CI I've it set up to update the versions of each lambda in a project repo. During packaging and deployment I inject the configuration of the git sha so that the next lambda function in the workflow that is called is consistent. Once the new workflow lambda call-chain is in place I can test / validate the new environment and then roll over the lambda that starts the workflow.

What I need to make sure of is that all the lambda functions / roles are updated before the starter so that the workflow doesn't break, as there could be breaking changes between commits.

A suggestion would be to create a repo per lambda function, but that becomes a hassle to manage after a few dozen, and just throws in even more work on ensuring the order of updates necessary. It is easier to flow between commit versions.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by josegonzalez on Thursday June 02, 2016 @05:16PM (#11826142)
Open an issue as to how that would work and I can take a look (I have commit bit on Kappa now).
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by orasis on Thursday June 02, 2016 @02:48PM (#11825040)
I've only used serverless and that only needs to run CF when you update backend resources.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jedberg on Thursday June 02, 2016 @02:51PM (#11825071)
Yeah serverless is a little smarter and directly uploads lambda functions.

The main reason I don't use serverless is because it's geared towards web development -- the lambdas and the api gateway are tied together. Most of what I'm doing is not web based.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by nzoschke on Thursday June 02, 2016 @11:53AM (#11823508)
This looks great.

I'm particularly excited about the CloudFormation support.

If you're managing stuff on AWS without CloudFormation you're missin out on one of the most powerful features of the platform.

CF can be pretty hard to use, which is why I love seeing OSS projects that solved the tedious parts of it for all of us to use.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by buremba on Thursday June 02, 2016 @10:06AM (#11822526)
+1 for support of local execution of lambdas.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jwerle on Thursday June 02, 2016 @06:20AM (#11821423)
what about github.com/apex/apex ?
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by neo2001 on Thursday June 02, 2016 @06:32AM (#11821474)
(Author of Gordon here)

I think the people from serverless (and apex) are doing an amazing job evangelizing about the benefits of server-less infrastructures and they have amazing projects they should be quite proud of.

Than been said, I think both projects walk different paths in order to achieve similar goals.

What is different with other approaches?

* Isolation is one of the most important things for us. Each of the stages of your application are deployed into independent Cloudformation stacks.

* We don't stream commands to the AWS api. Every single of your resources are created using CF.

* We respect the tooling of each of the runtimes so javascript, java or python developers should not get exposed to software they are not use to.

* Convention over configuration. Perhaps this is because my background is the Python/Django ecosystem, but writing 200 lines configuration files in JSON feels completely wrong to me.

* Documentation documentation documentation: Again, perhaps I've been badly educated by the Django community, but documentation and examples are (for me) the most important thing a project like this should have. That's why gordon's documentation is quite complete (I would say) and we have more than 20 example project including integrations with Slack, Telegram, Twilio... and AWS services such as Kinesis, Dynamodb, Apigateway, S3, Cloudwatch Events, Cloudwatch Scheduled Events, etc...

I think is an amazing moment to be involved in the server-less community and we'll all benefit from a thriving ecosystem like this :D

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by matlock on Thursday June 02, 2016 @10:13AM (#11822574)
Great work on this. We're actually moving in a similar direction at Serverless with full Cloudformation support in our current development branch for all the reasons you listed. Would love to chat sometime, email is in my account page.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by orasis on Thursday June 02, 2016 @02:52PM (#11825078)
FWIW, I've been using serverless the last couple of weeks and I find the request-response parameter mapping absolutely maddening.

Most of us have become used to frameworks like express for specifying our routes and manually specifying API gateway rules feels like a huge step backwards.

Re:Gordon: a tool to create, wire and deploy AWS Lambdas by rajington on Thursday June 02, 2016 @04:42PM (#11825869)
Messing with Gordon now, but I've messed with nearly every other serverless framework. If you're looking for something express-y then you might like claudia.js's ApiBuilder, but the underlying API Gateway is always the lowest common denominator so this just adds some prettiness on top. https://github.com/claudiajs/claudia
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by hmate9 on Thursday June 02, 2016 @08:46AM (#11821989)
Good work on Gordon, I'm certain I will use it in the future.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by alixaxel on Thursday June 02, 2016 @09:31AM (#11822300)
I don't think he has Gordon in his name. :P
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by hmate9 on Thursday June 02, 2016 @09:48AM (#11822393)
But it is the name of repo :P
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by felixgallo on Thursday June 02, 2016 @08:36AM (#11821943)
This looks really well thought out and executed. Nice work!
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by encoderer on Thursday June 02, 2016 @10:45AM (#11822842)
This is great. I wish this was around 8 months ago when I built lambda infrastructure at Cronitor. Local invocation, multi region deploys and config management all took far too much development time.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by robterrell on Thursday June 02, 2016 @11:34AM (#11823289)
Agreed, doing all that crap myself has been my biggest complaint about AWS Lambda so far. I can't understand why Amazon doesn't offer something like this as part of their CLI tools.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by rajington on Thursday June 02, 2016 @04:43PM (#11825877)
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by fiatjaf on Thursday June 02, 2016 @09:43AM (#11822371)
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by hltbra on Thursday June 02, 2016 @12:08PM (#11823656)
Zappa is web-specific (API Gateway + Lambda). Gordon seems to be more generalist: it's for whatever you want to run on AWS Lambda.
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by thomasreggi on Thursday June 02, 2016 @11:16AM (#11823122)
Python only :(
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jayzalowitz on Thursday June 02, 2016 @12:08PM (#11823654)
How does this compare to serverless? (full disclosure, we are starting to use it a ridiculous amount at fanatics)
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by juanriaza on Thursday June 02, 2016 @01:13PM (#11824215)
Re:Gordon: a tool to create, wire and deploy AWS Lambdas by jimpick on Thursday June 02, 2016 @10:56AM (#11822941)
Nice work! Potentially I could use this to deploy lambda-comments. :-)