TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mistakes I've Made in AWS

358 pointsby aomsover 3 years ago

25 comments

calmlynarczykover 3 years ago
This is more just &quot;missed optimization opportunities in EC2&quot; than a statement about mistakes in AWS as a whole.<p>If you want to talk systemic AWS mistakes you can make, we accidentally created an infinite event loop between two Lambdas. Racked up a several-hundred-thousand dollar bill in a couple of hours. You can accidentally create this issue across lots of different AWS services if you don&#x27;t verify you haven&#x27;t created any loops between resources and don&#x27;t configure scaling limitations where available. &quot;Infinite&quot; scaling is great until you do it when you didn&#x27;t mean to.<p>That being said, I think AWS (can&#x27;t speak for other big providers) does offer a lot of value compared to bare-metal and self-hosting. Their paradigms for things like VPCs, load balancing, and permissions management are something you end up recreating in most every project anyways, so might as well railroad that configuration process. I&#x27;ve experienced how painful companies that tried to run their own infrastructure made things like DB backups and upgrades that it would be hard to go back to a non-managed DB service like RDS for anything other than a personal project.<p>After so many years using AWS at work, I&#x27;d never consider anything besides Fargate or Lambda for compute solutions, except maybe Batch if you can&#x27;t fit scheduled processes into Lambda&#x27;s time&#x2F;resource limitations. If you&#x27;re just going to run VMs on EC2, you&#x27;re better off with other providers that focus on simple VM hosting.
评论 #28494208 未加载
评论 #28494423 未加载
评论 #28494160 未加载
评论 #28498469 未加载
评论 #28494154 未加载
评论 #28495225 未加载
评论 #28499055 未加载
igammaraysover 3 years ago
AWS is complexity-as-a-service. This is why, as a one-man company, I went baremetal[1]. One flat price, screaming fast performance, and massive scalability if you get a beefy enough machine[2]. I don&#x27;t have time to fiddle with k8s, try to figure out AWS billing&#x2F;performance tradeoffs, or deal with untraceable performance issues due to noisy neighbours and VM overhead. My disaster recovery plan is a simple DB dump script to S3, and I know I can get another baremetal server up and running in less than 20 minutes.<p>[1] with IBM Cloud 1 year free startup credits<p>[2] Let&#x27;s Encrypt and StackOverflow run their entire databases on a single beefy baremetal machine. <a href="https:&#x2F;&#x2F;letsencrypt.org&#x2F;2021&#x2F;01&#x2F;21&#x2F;next-gen-database-servers.html" rel="nofollow">https:&#x2F;&#x2F;letsencrypt.org&#x2F;2021&#x2F;01&#x2F;21&#x2F;next-gen-database-servers...</a>
评论 #28492662 未加载
评论 #28491659 未加载
评论 #28494380 未加载
评论 #28491504 未加载
评论 #28491599 未加载
评论 #28506844 未加载
评论 #28494450 未加载
评论 #28494104 未加载
评论 #28495804 未加载
hughrrover 3 years ago
Biggest mistake I’ve made:<p>Shifting any non trivial infrastructure into AWS verbatim is always more expensive than running it yourself. You need to rearchitect it carefully around the PaaS services to make a cost saving or even break even.<p>An extreme example of this is it cousin who works for a small dev company doing LOB stuff. They moved their SQL box into EC2 and it’s costing more to run that single RDS instance than their entire legacy infra cost was per year.<p>I’d still rather use AWS though. The biggest gain is not technology but not having to argue with several vendor sales teams or file a PO and wait for finance to approve it. All I do is click a button and the thing’s there.
评论 #28490786 未加载
评论 #28490615 未加载
评论 #28490609 未加载
评论 #28490803 未加载
评论 #28491174 未加载
danjacover 3 years ago
I&#x27;ve made it a habit to absolutely avoid any and all AWS services for any side projects, unless it&#x27;s on the employer&#x27;s dime. I&#x27;d rather pay a bit more per month for a flat-fee Digital Ocean droplet. Maybe I&#x27;ll end up paying a few dollars more than I would with the equivalent AWS setup, but I&#x27;ll rest easy knowing I won&#x27;t get a surprise bill thanks to the opaque and byzantine billing. I mean, there are consultancies whose entire premise is expertise on AWS billing, so the chance of AWS newbie-me running up many thousands because I forgot to switch off service A or had the wrong setting for service B is non-zero.<p>And the general advice is &quot;don&#x27;t worry, call their customer support and they&#x27;ll refund you&quot;. Um, seriously? If I want to spend a morning on hold to deal with a huge unplanned bill I&#x27;ll call my local tax office, thank you.<p>Which sucks as I learn best by building things in my spare time, but AWS makes that learning process a bit more stressful than I&#x27;d prefer.
评论 #28490890 未加载
评论 #28491703 未加载
评论 #28490911 未加载
评论 #28490979 未加载
评论 #28491759 未加载
评论 #28491064 未加载
评论 #28491175 未加载
评论 #28490905 未加载
评论 #28491927 未加载
评论 #28511513 未加载
评论 #28491542 未加载
评论 #28491918 未加载
评论 #28491149 未加载
评论 #28491072 未加载
评论 #28492796 未加载
评论 #28491456 未加载
评论 #28492432 未加载
评论 #28493459 未加载
评论 #28491011 未加载
评论 #28491911 未加载
noir_lordover 3 years ago
I nearly made myself a very nice footgun not long since.<p>So MediaConvert (video transcoding), direct s3 upload to s3 bucket, bucket fires event to my application, my application builds the job and submits it to media convert with the output bucket as the destination.<p>Straight forward enough, unless you happen to be copying a config tired and put your input&#x2F;output buckets as the same bucket...<p>Fortunately previous-me was paranoid enough to have put in an if check and die if they where the same but otherwise that could have cost a lot of money.
评论 #28492386 未加载
helsinkiandrewover 3 years ago
Nothing for me compares to the time I purchased 2 reserved EC2 instances for about $5K on my personal account rather than companies. I can still remember that sinking feeling as I realized what I&#x27;d done.<p>Amazon refunded the next day.
评论 #28490944 未加载
sebazzzover 3 years ago
In summary: Either overprovisioning, or not realising every extra CPU cycle or I&#x2F;O operation costs extra money.<p>This is, of course, the real way &quot;the cloud&quot; makes money. Carefully tuned, it can no doubt be cheaper than do-it-yourself, however, it is also quite easy to make a lot of costs.
评论 #28490540 未加载
nickjjover 3 years ago
My favorite billing mistake was forgetting to delete an unused elastic IP address and then realizing I was being charged $34 &#x2F; month for 2 months just to have it exist while doing nothing.<p>Edit: It&#x27;s exactly $33.62 and I was mistaken on what caused it. It came from having a NAT Gateway just idling which is $0.045 per hour x 747 hours = $33.62 on us-east-1.<p>I know it&#x27;s not the biggest mistake ever, but these things creep up on you when you use CloudFormation and it continuously fails to delete resources so you&#x27;re left having to manually trace through a bunch of resources. It&#x27;s easy to leave things hanging.
评论 #28491354 未加载
tedk-42over 3 years ago
Few easy ones as well:<p>1) Terminating instances that had ephemeral disks with stuff you needed while thinking the EBS volumes would remain<p>2) Leaving NAT gateways lying around or ELBs that do nothing and have no instances attached.<p>3) Public S3 buckets - arguably the most common one that can lead to security incidents<p>4) Debugging security groups&#x2F;Network ACLs and straight up break networking for something without knowing it. Reverse of that would be you want to fix something quickly and open 0.0.0.0&#x2F;0 to everyone and never get around to tightening up the firewall later on.
评论 #28491666 未加载
评论 #28503199 未加载
mfrye0over 3 years ago
One of the biggest mistakes I made is not exploring spot instances and reserved instances earlier.<p>I cut my bill by 70-80%% after paying full price for years...<p>If you have an active web server or backend workers with fairly short jobs, spot instances will work for you.
评论 #28494635 未加载
zackmorrisover 3 years ago
I view AWS as a study in doing everything the &quot;bare hands&quot; way. Here are some examples of the old sysadmin ways of doing things vs the modern &quot;web&quot; way:<p>* regions -&gt; self-balancing algorithms like RAFT<p>* roles&#x2F;permissions -&gt; tokens<p>* IP address filtering -&gt; tokens<p>* CPU clusters -&gt; multicore&#x2F;containerization&#x2F;Actor model<p>* S3 -&gt; IPFS or similar content-addressable filesystems<p>It&#x27;s not just AWS having to deal with this stuff either:<p>* CORS -&gt; Subresource Integrity (SRI)<p>* server languages (CGI) -&gt; Server-Side Includes (SSI)<p>* Javascript -&gt; functional reactive, declarative and data-driven components within static HTML<p>* async -&gt; sandbox processes, fork&#x2F;join, auto-parallelization (seen mostly in vector languages but extendable to higher-level functions)<p>* CSS -&gt; a formal inheritance spec (analogous to knowing set theory vs working around SQL errata)<p>I could go on forever but I&#x27;ll stop there. We are living at a very interesting time in the evolution of the web. I think that web dev has reached the point where desktop dev was in the mid-1990s and is ripe for disruption. No disruption will come from the big companies though, so this is your chance to do it from your parents&#x27; basement!
评论 #28503231 未加载
lysecretover 3 years ago
Ok im going to admit to a mistake revolving around NAT gateways and Lambdas. So, i basically wanted to connect a Lambda to a Postgres &#x2F; RDS database, for that I had to put into a private VPC, but the lambdas still had to talk to the world (a lot) so i just put a nat gateway around it no biggy. Well, end of the story on one day i produced 2000 Euro in cost for the Nat gateway haha
评论 #28503211 未加载
projectramoover 3 years ago
My biggest mistake: years ago I ended pushing personal credentials to GitHub at night and waking up to a several thousand dollar bill in the morning.<p>Changed credentials and cancelled all the running instances only to find that I’d missed some.<p>It was resolved by the afternoon.
评论 #28494277 未加载
jcimsover 3 years ago
I feel like large enterprises primarily see AWS as a way to outsource capital expenses.
评论 #28491790 未加载
评论 #28494586 未加载
评论 #28491672 未加载
unglaublichover 3 years ago
But what mistakes did he make? Did he screw up the bill? Did he fail to keep services available? I only read facts about the ins and outs of AWS&#x27; billing and credits system.
评论 #28490920 未加载
physiclesover 3 years ago
Burst CPU and IOPS has bitten me a couple times over the years. In fact, it’s basically the sole cause of nearly all our downtime in recent history. That’s frustrating. I get that it’s a technical solution to the problem of resource utilization at scale, but they could’ve spent some time making it easier to observe — for example, rescale the CPU or IOPS graphs so that 100% is your max sustained budget, and anything over 100% eats into your quota.
Kiroover 3 years ago
Slightly OT: I love Forge but recently I&#x27;ve started using it for my non-PHP projects which feels... wrong. Are there any similar services that are more agnostic?
评论 #28498276 未加载
steveBK123over 3 years ago
On billing.. they will never do it, but on smaller accounts they could build trust by offering some sort of &quot;prepaid&quot; mode like cell phone services do at the low end.<p>That is - you deposit $X in your account, and AWS nukes your live services if you breach it. The worst that ever happens is you are out sunk cost of the $X you had already deposited.
wly_cdgrover 3 years ago
Heh, I like how Amazon literally took the boost mechanic from arcade racing games for the CPU credits in T2&#x2F;T3
daneel_wover 3 years ago
<i>&quot;Technically they are a smidgen slower than Intel for certain workloads.&quot;</i><p>In my experience, after migrating several servers with quite varying workloads, they&#x27;re <i>faster</i> than Intel - and more than a smidgen. Just as is the general case with current AMD Ryzen vs Intel.
StratusBenover 3 years ago
[Disclosure] I&#x27;m Co-Founder and CEO of <a href="http:&#x2F;&#x2F;vantage.sh&#x2F;" rel="nofollow">http:&#x2F;&#x2F;vantage.sh&#x2F;</a>, a cloud cost platform for AWS. Previously I was a product manager at AWS and DigitalOcean.<p>Since the author and so many people are commenting about AWS costs (and in particular, choosing cheaper EC2 instances and EBS volumes) I thought I&#x27;d mention that Vantage has recommendations that look to tell you for these exact things so you don&#x27;t get tripped up &#x2F; spend more than you have to.<p>If you have &quot;antiquated&quot; EC2 instances or EBS volumes, Vantage will give you a recommendation for which instance to switch to and how much money you&#x27;ll save.<p>The first $2,500&#x2F;month in AWS costs are also tracked for free so people get a lot of value out of the free tier and can save significant parts of their bills when developing on AWS.
评论 #28491794 未加载
评论 #28492111 未加载
dncornholioover 3 years ago
Mistakes? How about the flaws of that what is AWS and there terrible, terrible pricing system that rewards them for your mistakes.
jbverschoorover 3 years ago
Most common made mistake: assuming that your data is safe on an EC2 instance (ephemeral storage)
awinter-pyover 3 years ago
there should be a social media platform just for people to list their mistakes
defaultnameover 3 years ago
On a price sensitive project I almost exclusively used spot instances at a <i>dramatically</i> reduced price over on-demand. It forced me to built high availability elements into the design at the outside, though ultimately spot instances got shut down no less frequently than my experience with on demand maintenance and individual machine outages.<p>Obviously mileage will vary, but going in I was under the impression that spot instances were on the knife&#x27;s edge, when with a decent pricing strategy they&#x27;re as robust as on demand at a fraction of the cost.
评论 #28491592 未加载
评论 #28491556 未加载