TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What does a newbie need to know in order to avoid AWS cost disasters?

16 点作者 el_hacker将近 2 年前
I am about to use some AWS services for the first time and I am a bit worried about the disasters that happen because of the pay-for-what-you-use business modal, a simple loop can cause you a 5 figure bill.<p>So I am asking about the necessary things I should know as a beginner AWS user to avoid such problems.<p>Also, any other info&#x2F;advice to reduce costs is welcome.<p>The services I will be using are S3, Elemental MediaConvert, and CloudFront.<p>For video streaming.

5 条评论

atmosx将近 2 年前
To mention just the first few that come to mind:<p>- Setup aws billing cost alerts based on thresholds<p>- Consult AWS billing dashboard daily first, then weekly, then monthly. There is a &quot;forecast&quot; that can tell where you&#x27;re going to land at the end of the month (ballpark).<p>- Understand how s3 charges, take advantage of the various storage classes. Setup s3 bucket lifecycle to delete objects if you have expiring objects.<p>- Make sure you setup backups. This can be a source-code repo or something like glacier. Make sure you understand how it works. tl;dr archiving is cheap, retrieving is expensive &amp; slow.<p>- Make sure you understand how data transfer is charged on AWS (e.g. <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;architecture&#x2F;overview-of-data-transfer-costs-for-common-architectures&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;architecture&#x2F;overview-of-data-t...</a> - there are many others)<p>- Avoid services that use the AWS API to fetch metrics unless you have bandwidth to monitor closely. I&#x27;ve seen companies getting charged 6-7k&#x2F;month for months, without anyone noticing, just because a prom exporter was abusing the API. When I took notice, three months in, I removed the exporter without letting anyone know. Scream-test was passed in flying colours, no one complained :-)<p>Good luck! :D
评论 #36677513 未加载
freelanddev将近 2 年前
Just curious... are you using it for a personal project or is it part of a requirement for a role&#x2F;employment?<p>I&#x27;ve seen this happen: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;ProgrammerHumor&#x2F;comments&#x2F;w4eo12&#x2F;using_aws&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;ProgrammerHumor&#x2F;comments&#x2F;w4eo12&#x2F;usi...</a><p>I don&#x27;t have any great pointers unfortunately, though I met someone not too long ago who has a product to help with monitoring AWS costs: <a href="https:&#x2F;&#x2F;www.cloudforecast.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.cloudforecast.io&#x2F;</a><p>Disclaimer: I&#x27;ve never used this tool as I don&#x27;t use AWS but if I did have to use AWS, I would likely try something like this at least early in the game to avoid getting rekd.
评论 #36690090 未加载
thorin将近 2 年前
In my view this makes it very difficult to use AWS or Azure for fun or as part of a small operation. It&#x27;s fine when you have a big organization monitoring this stuff and a support team, but how will you feel if you get a billing alert at 3am when you&#x27;re asleep or out at a nightclub telling you there is a massive overspend. Are you going to put yourself on 24hr support?<p>I&#x27;m just moving from somewhere with AWS and a large team supporting it onto Azure with a much smaller team where I&#x27;ll have full access to creating any component and the billing information, will be interesting to see what happens. Even then though it&#x27;s not really publicly accessible so we shouldn&#x27;t get anything too unexpected.
评论 #36688740 未加载
mostlysimilar将近 2 年前
AWS has tools to set spending thresholds and to alert when you go over. Set those up first thing. Regularly (daily) check your usage in the dashboard and stop things before they get out of hand.<p>You will eventually accidentally spend more than you want to. This is a feature. Just try to catch it early and course correct before annoying becomes disaster.
throwawayadvsec将近 2 年前
get a virtual debit card, put a limit on it, this goes for any online service that is pay as you go or free trial
评论 #36689102 未加载