Fireship · @fireship
How to Burn Money in the Cloud // Avoid AWS, GCP, Azure Cost Disasters
Uploaded December 14, 2020 · Length 9:00
Summary
Preventing massive cloud bills from AWS, GCP, Azure by setting budget alerts, avoiding infinite loops, and configuring scaling correctly.
- cloud cost optimization
- aws cost disasters
- gcp cost control
- azure cost management
- serverless computing best practices
- cloud scalability
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:01
when you decide to move to the cloud one
- 0:02
of the first things you have to do
- 0:04
is give them your credit card that's
- 0:05
because they're giving you access to a
- 0:07
massive network of computers worth
- 0:09
billions upon billions of dollars when
- 0:10
you write inefficient code on your own
- 0:12
computer it's usually not a big deal the
- 0:14
cpu fan might spin a little faster or
- 0:16
things might run slower when you run out
- 0:17
of ram
- 0:18
but in the cloud it's a whole different
- 0:20
ball game that recursive function you
- 0:21
wrote can now scale infinitely around
- 0:23
the globe
- 0:24
blowing up cpu cores and melting solid
- 0:26
state drives in the process
- 0:27
and someone is going to have to pay for
- 0:29
that mess in today's video we'll look at
- 0:31
a real life story about how a startup
- 0:33
just days away from launch racked up a
- 0:35
72 thousand dollar google cloud bill
- 0:37
stand it's gone didn't do too well it's
- 0:39
gone poof
- 0:41
we'll find out how that's even possible
- 0:43
but more importantly we'll look at ways
- 0:44
to prevent something like that from
- 0:46
happening to you
- 0:46
if you're new here like and subscribe
- 0:48
then let's get right into it
- 0:50
imagine spending months pouring blood
- 0:52
sweat and tears into your startup
- 0:54
you're just days away from the big
- 0:55
launch doing some final testing here and
- 0:57
there
- 0:57
your product is ready to go you just
- 0:59
need to scrape some data from the web to
- 1:01
enrich the user experience
- 1:02
you throw together some ad-hoc code to
- 1:04
get the job done dockerize it
- 1:06
then deploy it to a serverless platform
- 1:08
like google cloud run
- 1:09
it only needs to run for a few hours so
- 1:10
you deploy it then call it a night
- 1:13
you wake up to a couple of interesting
- 1:15
emails our firebase project was upgraded
- 1:18
from the free plan
- 1:19
to the pay-as-you-go plan we must have
- 1:20
enabled an api that requires billing
- 1:22
which automatically upgraded the plan
- 1:24
not to worry we already have a budget
- 1:26
alert in place oh no
- 1:27
the next email tells us our seven dollar
- 1:29
budget has been exceeded
- 1:30
the third email tells us our credit card
- 1:32
was declined i wonder why that would be
- 1:34
let's open the billing panel in google
- 1:35
cloud no god please
- 1:37
no no a bill of over five thousand
- 1:40
dollars in just a few hours
- 1:42
it has to be a mistake let's refresh the
- 1:44
page and pray
- 1:45
no no five minutes later the bill's at
- 1:49
fifteen thousand dollars
- 1:50
after twenty minutes twenty five
- 1:52
thousand dollars the final bill settled
- 1:53
up after about two hours just short of
- 1:55
seventy two thousand
- 1:56
increasing your startups burn rate by
- 1:58
about six hundred dollars per minute


