News for hackers. Stuff that matters.
Re:Ask HN: Best free compute and other resources for startups? by adrianN on Wednesday June 19, 2019 @02:45PM (#20226041)
Deploying to lambda is literally uploading a zip.
Re:Ask HN: Best free compute and other resources for startups? by eropple on Wednesday June 19, 2019 @02:49PM (#20226095)
Yes. Do you know what deploying in my local environment, for my own projects, is? It's "control-S". (Because a file watcher reloads the application.)

This is acutely top-of-mind for me because I used to run a devops consultancy and I currently head devops, including release management, for a startup built heavily on AWS Lambda. I am doing my level best to reduce the loop as much as I can for the dev team.

It's still way, way slower than control-S. And always will be.

Re:Ask HN: Best free compute and other resources for startups? by solidasparagus on Thursday June 20, 2019 @04:19AM (#20230925)
What is it that makes this a problem? It has literally never been an issue for me.

I test the lambda body locally with a single command. Only upload a new zip when you hit the release candidate stage and that's not frequent enough for the few seconds it takes to upload to lambda to be a problem.

Re:Ask HN: Best free compute and other resources for startups? by cs02rm0 on Wednesday June 19, 2019 @02:52PM (#20226133)
Until you need a database.

And an API.

And a website.

And a CDN.

And...

And if you get as far as CloudFormation I just have one word of advice. Run!

Re:Ask HN: Best free compute and other resources for startups? by adrianN on Wednesday June 19, 2019 @03:02PM (#20226277)
I used terraform instead of Cloudformation but didn't find it too terrible for what I needed. I realize that it doesn't scale very well to very complicated stuff, but we're talking about using the free tier to prototype things. I'm also not convinced that it's significantly easier to develop locally if you need all that stuff.
Re:Ask HN: Best free compute and other resources for startups? by 013a on Wednesday June 19, 2019 @03:23PM (#20226485)
CF isn't that bad... if you use one of the many abstraction tools like the CDK or SAM.

It's ugly. It has a TON of powerful functionality that the documentation dives into way too early for most people. It has some weird behavior, especially when you get into networking or stateful resources. It's not perfect. But it gets the job done.

Re:Ask HN: Best free compute and other resources for startups? by ben509 on Wednesday June 19, 2019 @04:39PM (#20227106)
I worked at AWS on a service team, and did a lot of work with CF.

CF's limitations are in part due to the fact that AWS services are all independent entities and the interoperability services have tremendous difficulty getting other service teams to do their part.

The CloudTrail team, for instance, went to great lengths to furnish documentation for other teams to configure their API logging; I know our team fucked it up repeatedly because it was always an afterthought.

You can see in CF that some resources are basically useless, and are plainly provided by CF so that the service owner could check a box. Read "Updating DB Instances" here[1] and then look at all the properties that require replacement.

CF's design reflects this reality. It does not try to understand how services interact or what objects are. Rather, a "resource" knows how to set up and teardown and a few other operations.

If you manage resources exclusively through CF, it can handle most simple use cases. Which is the other limit of CF: by design, they're trying to keep their core invariants simple.

For instance, CF offers no mechanism to stage deploys. As an example, the popular Serverless tool has to initially construct a stack with just an S3 bucket, and then issue an update to that to include your actual stack.

Internally, we proposed doing staged deploys (because wound up hacking them together) and they weren't interested. And I think that's because they would rather keep the API simple even if it means users move away from CF; possibly a consequence of a loss leader business model.

So, yes, CF does get the job done at first, but you will eventually find yourself outgrowing it.

[1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGui...

Re:Ask HN: Best free compute and other resources for startups? by cmauniada on Wednesday June 19, 2019 @02:58PM (#20226210)
Why? Cloud formation is awesome.