Hacker News new | ask | show | jobs
by smartsystems 2320 days ago
Yeah, do not do this. You'll end up with a $1000 bill from Amazon becuase you forgot to shut it down and discover very quickly they don't care at all once they already have your money.
3 comments

FWIW, I did that once for an unrelated project and they ate the 1200 bill for a running EC2.

I dunno if they'd eat that cost again, and I wouldn't try it on purpose.

But keep in mind that they have an incentive to do this: it's the cost of acquiring users without scaring them about a possibly humongous bill.

I now have better billing alarms set.

They should just add an "shutdown at cost x option" for private users at least..
https://aws.amazon.com/getting-started/tutorials/control-you...

Under section 4, anyone can set up an aws cost budget

Yes, you can set up a budget but it's only used for alerting. The services will happily keep running and building up to that 1k bill if you miss the alerts or don't react to them.
Those alerts can invoke a Lambda that shuts the service down, which is a ridiculously baroque solution but it's what you get.
Wow, they really made it complex, didn't they? On one hand they advertise how anyone can spin up a VM and connect to it but you still need to do some serverless black magic to keep your budget in check. Anyway, thanks for the heads up. I'll definitely try that out.
> ridiculously baroque solution

It seems to follow their practice of building the “API first” solution. By the way, a lambda/programmatic solution allows you to disable lower priority resources and retain higher priority resources. It’s a lot of effort, but it’s incredibly flexible.

Additionally billing alarms have a max precision of a day, so if you manage to really screw up you can rack up a huge bill before the alarm goes off.
You can set up billing alarms with thresholds which send you sms/email alerts
Yeah, that's not a terrible idea. But I work with tools that could, like, cut my thumbs off... I feel like this is still pretty nerfed up by comparison.
>and discover very quickly they don't care at all once they already have your money.

That hasn't been my experience with AWS but then again it has been years since I allowed such a thing to happen.

Setting up a CloudWatch alert to email you when the bill goes over $10 in 6 hours is a good measure (of course you probably won't get the alert for 24 hours because of Amazon's billing update delay).