|
|
|
|
|
by zamadatix
1689 days ago
|
|
I don't have access to the dashboard because I cancelled my AWS account rather than try to spend more time finding things that still needed to be unconfigured/disabled to get them to stop billing me (the last straw was going to the spend analyzer and it telling me it'd take 24 hours to see what is still costing me money) but: Can I terminate based on cost? Like "I have spent $1,000 this month in AWS, something has gone wrong just kill everything" (or at least runaway service buckets) or is it just "oh I forgot to terminate this particular EC2 instance once I was done with it it'd be nice if I could just set those rules up in advance"? |
|
Step 1. Go to billing and create a monthly budget. Mine is $100.
Step 2. Create an alert: First alert is I get an email when it exceeds 80% ($80) total AWS costs.
Step 3. Create an action: I only have a single EC2 instance running a webserver that is always on. If my threshold is exceeded (say, a million people start downloading my pictures and my IO-OUT spikes), my action stops my EC2 inst via an IAM role action. Boom. Server goes offline instantly, without having to log in (like if I'm sleeping, or drunk).
Done.
Sometimes I get an alert because my usual cost is $35/mo and if a few domain renewals pop up that month, it will spike to $80. Hence the alert at $80 and action at $100 threshold.
And I can use any kind of metric: IO bandwidth from downloads, RDS bandwidth for too many queries, if I had elastic instances, limit the # based on cost. It is completely flexible. You can terminate too, but I only have one, I don't use elastic pools to dynamically allocate.
I don't get all the fuss, it is quite a simple service. Maybe it doesn't scale well for huge operations and that is the problem cuz i'm not a power user or company?