News for hackers. Stuff that matters.
Re:AWS services to avoid by dayjah on Sunday May 10, 2020 @10:19AM (#23132750)
Yeah, missing the proxy pass option will definitely burn a prospective Lambda user.

I also felt a similar tinge when the post talks about KCL. Yes, you use it, and yes there are rules about output streams - but they all make sense when deployed in fairly complex environments. I can’t remember when I last used stdout for logging outside of greenfield development. Once it’s on prod everything goes to stderr and is highly structured.

Similar sentiments about Cognito. At some point of complexity you must have a server in between using the Admin* range of commands. If you want their “get going quickly” then yes, there are trade offs like WebViews. That said; I’ve never used Auth0 - so insert a Luddite warning here.

Finally, one hundred percent agree on CF.

Re:AWS services to avoid by redisman on Sunday May 10, 2020 @01:16PM (#23134242)
Another pretty basic Lambda thing the author didn’t mention is the alias feature. So rather than having users-api-dev, users-api-qa - we just have users-api and it has a alias for each environment. The environment variable management is not amazing but just using a key-value JSON {dev: {a: “bc”}} works fine.

There’s also truly no reason one lambda function can’t have a collection of APIs (using the proxy method from API gateway). It’s literally no different from any other micro service setup. You can pick any abstraction for a function to cover.

Re:AWS services to avoid by Aeolun on Sunday May 10, 2020 @05:55PM (#23136635)
If you start trying to work around the limits of your abstraction, maybe you just chose the wrong one in the first place.

This is what seems to happen when working with Lambda for me.

Re:AWS services to avoid by jacobra2 on Sunday May 10, 2020 @11:19AM (#23133283)
Could you elaborate on the proxy pass option piece?
Re:AWS services to avoid by davidgh on Sunday May 10, 2020 @01:04PM (#23134165)
https://docs.aws.amazon.com/apigateway/latest/developerguide...

From the article:

In Lambda proxy integration, when a client submits an API request, API Gateway passes to the integrated Lambda function the raw request as-is.

...and:

You can set up a Lambda proxy integration for any API method. But a Lambda proxy integration is more potent when it is configured for an API method involving a generic proxy resource. The generic proxy resource can be denoted by a special templated path variable of {proxy+}, the catch-all ANY method placeholder, or both.