3 ms·
> much simpler services from AWS Like what, Lambda? I've seen so much horrible hacks and shit done with it (and other AWS services cough API gateway cough), th
by mschuster91 2y ago
> much simpler services from AWS
Like what, Lambda? I've seen so much horrible hacks and shit done with it (and other AWS services cough API gateway cough), these days I rather prefer a set of Kubernetes descriptors and Dockerfiles.
At least that combination all but enforces people doing Infrastructure-as-a-code and there's (almost) no possibility at all for "had to do live hack XYZ in the console and forgot to document it or apply it back in Terraform" .
- scarface_74 2y agoAWS App Runner https://aws.amazon.com/blogs/containers/introducing-aws-app-runner/ https://aws.amazon.com/blogs/containers/introducing-aws-app-... Google has something similar.
- icedchai 2y agoGCP has Cloud Run, which looks similar. App Runner is basically a wrapper on top of Fargate, right?
- scarface_74 2y agoYep. Every “serverless” compute service is just a wrapper on top of Firecracker including Lambda and Fargate.
- icedchai 2y agoIn my experience, you are better off with ECS/Fargate than Lambda for serving an API. You get much more flexibility. Also, I've witnessed people editing Lambda code through the console instead of doing a real deploy. what a mess...
- scarface_74 2y agoYou can’t edit Lambda code in the console when you deploy a Docker image to Lambda. As far as flexibility, while there have been third party libraries that let you deploy your standard Node/Express, .Net/ASP, Python/Flask app to Lambda, now there is an official first party solution https://github.com/awslabs/aws-lambda-web-adapter https://github.com/awslabs/aws-lambda-web-adapter And as far as ECS, it is stupid simple I’ve used this for years https://github.com/1Strategy/fargate-cloudformation-example/blob/master/fargate.yaml https://github.com/1Strategy/fargate-cloudformation-example/...
- mschuster91 2y ago> Also, I've witnessed people editing Lambda code through the console instead of doing a real deploy. what a mess... Yeah, exactly that's what I am talking about. Utter nightmare to recover from, especially if whoever set it up thought they needed to follow some uber-complex AWS blog post with >10 involved AWS services and didn't document any of it.
- scarface_74 2y agoYou can’t edit Lambda code directly in the console when using Docker deployments