News for hackers. Stuff that matters.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by spacebanana7 on Thursday November 14, 2024 @05:10AM (#42134695)
Hard spend limits are an anti-feature for enterprise customers, who are the core customer of AWS. Almost no level of accidental spend is worth creating downtime or data loss in a critical application.

Even having the option of a hard spend limit would be hazardous, because accounting teams might push the use of such tools, and thereby risk data loss incidents when problems happen.

Hard spend limits might make sense for indie / SME focused cloud vendors though.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by traceroute66 on Thursday November 14, 2024 @06:51AM (#42135326)
> Hard spend limits are an anti-feature for enterprise customers

Yada yada yada, that's the same old excuse the cloud providers trot out.

Now, forgive me for my clearly Nobel Prize winning levels of intellect when I point out the following...

Number one: You would not have to turn on the hard spend limit if such functionality were to be provided.

Number two: You could enable customers to set up hard limits IN CONJUNCTION WITH alerts and soft limits, i.e. hitting the hard limit would be the last resort. A bit like trains hitting the buffers at a station ... that is preferable to killing people at the end of the platform. The same with hard spend limits, hitting the limit is better than waking up in the morning to a $1m cloud bill.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by Terretta on Thursday November 14, 2024 @08:31AM (#42135986)
There's no way to implement a hard limit without getting in the middle of your system in ways that (a) alter the system design, (b) in ways you cannot correct for, and (c) not for the better.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by fallingsquirrel on Thursday November 14, 2024 @09:07AM (#42136233)
Of course there is. If someone hits their spending limit, asynchronously shut off the services (using the same API call that your customers can use, so no need to alter the system).

Then apply the hard limit in the billing code. If it took a minute or two to shut off all the instances, maybe the customer's bill should have been $1.001M instead of $1M, but cap the bill to $1M anyway. Given their profit margins of x,000% I think they can afford the lost pennies.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by sigseg1v on Thursday November 14, 2024 @09:06AM (#42136227)
In my experience every AWS service I've worked with has an API to destroy the resource, eg destroy RDS instance without backup, terminate EC2, etc. I want it to irrecoverably destroy everything in my account when it hits the limit, no questions asked.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by traceroute66 on Thursday November 14, 2024 @01:07PM (#42139171)
> There's no way to implement a hard limit without ...

I don't believe that for a minute.

You know why ?

Let's turn it on its head. What happens if the credit card on your AWS account expires or is frozen ?

You think AWS are going to continue letting you rack up money with no card to charge against ?

I betcha they'll freeze your AWS assets the nanosecond they can't get a charge against the card.

The mechanism for customer-defined hard limits is basically no different.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by BoorishBears on Friday November 15, 2024 @11:12PM (#42154105)
From experience they will let you spend tens of thousands of dollars a month without a valid payment method.

Like many times more than you've ever even spent with them.

I mean it's like 6 months of that before you even get your first non-standard form email.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by tw04 on Thursday November 14, 2024 @05:15AM (#42134730)
> Hard spend limits are an anti-feature for enterprise customers, who are the core customer of AWS. Almost no level of accidental spend is worth creating downtime or data loss in a critical application.

Great, so they don’t have to use the feature?

That excuse was a great excuse when AWS was an MVP for someone. 20+ years later… there is no excuse.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by another-dave on Thursday November 14, 2024 @05:52AM (#42134971)
> Almost no level of accidental spend is worth creating downtime or data loss in a critical application.

That feels like a bit of a red herring — if that was their ethos, then you'd _have_ to choose burstable/autoscaling config on every service. If I can configure a service to fall over rather than scale at a hard limit, that points to them understanding different their use cases (prod vs dev) and customer types (start-up vs enterprise).

Additionally, anytime I've worked for an enterprise customer, they've had a master service agreement set-up with AWS professional services rather than entering credit card info, so they could use that as a simple way to offer choices.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by Terretta on Thursday November 14, 2024 @08:37AM (#42136027)
A service doesn't just "fall over" at a limit. There has to be other machinery to limit it.

Given that all your usage and traffic other than that at the limit request should not be gated or limited, why would you want someone else injecting additional complexity and bottleneck risk inline?

Determine your own graceful envelope, implement accordingly.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by another-dave on Thursday November 14, 2024 @08:44AM (#42136075)
The OP was saying that having any spending limit would be antithetical to enterprise usage because it could bring critical services to a halt.

My point was, if that's a reason to have unbounded spending, why allow me to spin up a service that can get CPU or RAM bound?

> Determine your own graceful envelope, implement accordingly.

Which most people do have, but we then also want an "ungraceful" backstop — trains have both a brake and a dead man's switch.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by herculity275 on Thursday November 14, 2024 @05:15AM (#42134727)
> Even having the option of a hard spend limit would be hazardous, because accounting teams might push the use of such tools, and thereby risk data loss incidents when problems happen.

"Hazardous" feels like the wrong word here - if your customer decides to enact a spend limit it should not be up to you to decide whether that's good for them or not.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by GTP on Thursday November 14, 2024 @08:07AM (#42135818)
> Almost no level of accidental spend is worth creating downtime or data loss in a critical application

But not all applications are critical, and the company deploying those applications should be able to differentiate between what's critical and what's not. If they're unable to, that's their fault. If there's no option to set hard limits, that's AWS' fault.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by whywhywhywhy on Thursday November 14, 2024 @05:38AM (#42134881)
So have a “Starter” account with spend limits then, don’t understand how an individual is supposed to learn this stack and actually sleep at night without waking up panicking something has been left running.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by vultour on Thursday November 14, 2024 @05:53AM (#42134980)
By checking what resources you are spinning up and double checking everything has been removed after you're done. I have used AWS for small projects many times and have never been hit with a surprise bill. The platform is built for actual customers, not your hello world app.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by ekidd on Thursday November 14, 2024 @06:01AM (#42135026)
Being aware of everything you're running on AWS is trivial when it's all on the EC2 dashboard, and you create everything by hand or using Terraform.

Many of these new AWS-provided stacks, however, seem to create stuff all over your account.

The moral of the story? Don't ever use AWS tools like the one the OP describes, ones which create a bunch of different resources for you automatically.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by dijksterhuis on Thursday November 14, 2024 @07:20AM (#42135518)
> The moral of the story? Don't ever use AWS tools like the one the OP describes, ones which create a bunch of different resources for you automatically.

i use them to create a small test stack to look at it for a day or two.

then go through, delete all of the resources, put what i need into terraform etc.

has worked well for me in the past.

but yeah, i would never blindly use aws tools to magically put something into production.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by oliwarner on Thursday November 14, 2024 @05:53AM (#42134978)
Is every problem you see so insurmountable?

In the olden days if we spotted a customer ringing up a colossal bill, we would tell them. These huge Amazon bills are fast but still multiple days. They can trivially use rolling-projection windows to know when an account is having a massive spike.

They could use this foresight to call the customer, ensure they're informed, give them the choice about how to continue. This isn't atomic rocket surgery.

"Oh but profit" isn't an argument. They are thousands of dollars up before a problem occurs. The only money they lose is money gained through customer accident. Much of it forgiven to customers who cannot afford it. It's not happily spent. They can do better business.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by cdchn on Thursday November 14, 2024 @07:35AM (#42135609)
Cost Anomaly alerts do exactly this.

You can't even setup Cloudwatch alerts on your actual spend, the only metric available to you is "EstimatedCharges".

Re:I Followed the Official AWS Amplify Guide and Was Charged... by oliwarner on Thursday November 14, 2024 @08:28AM (#42135968)
Which is great if you understand them and set them up. The post here is an experience following an Amazon tutorial and without expecting it, ending up $$$ in debt.

Again, Amazon isn't stepping up to protect users from themselves. They could do a lot more.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by cdchn on Thursday November 14, 2024 @09:04AM (#42136217)
They refunded him the money, without a lot of hassle. He toddled into a rough edge, bumped his head, Amazon made it better and apparently gave him a lollipop as well and sent him on his way. I think Amazon should get some credit here.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by marcinzm on Thursday November 14, 2024 @06:20AM (#42135149)
AWS provides forecasted spend and other alerts. People just don't use them and then complain.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by dkdbejwi383 on Thursday November 14, 2024 @06:17AM (#42135132)
Make "unlimited spend" an opt-in. That way users who have explicitly chosen this and agreed to the terms can't then complain to support to try and get the bill waived.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by rwmj on Thursday November 14, 2024 @05:15AM (#42134725)
Cool, have an "I know what I'm doing, opt me out!" button.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by scott_w on Thursday November 14, 2024 @06:50AM (#42135320)
> Even having the option of a hard spend limit would be hazardous, because accounting teams might push the use of such tools, and thereby risk data loss incidents when problems happen.

This is an interesting point and something I can totally imagine happening! I guess if you have fixed spending limits in a large enough organisation, you lose some of the benefit of cloud infrastructure. Convincing a (metaphorically) remote Finance department to increase your fixed spending limit is probably a tougher task than ordering a load of new hardware!

Re:I Followed the Official AWS Amplify Guide and Was Charged... by jjallen on Thursday November 14, 2024 @06:16AM (#42135127)
So make it an option. That’s not hard.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by concerndc1tizen on Thursday November 14, 2024 @06:02AM (#42135038)
This guy is a straight shooter with upper management written all over him.

(Office Space)

Re:I Followed the Official AWS Amplify Guide and Was Charged... by dogleash on Thursday November 14, 2024 @06:34AM (#42135209)
> Even having the option of a hard spend limit would be hazardous, because accounting teams might push the use of such tools

Tell me you're Shadow IT without telling me you're Shadow IT.

I know legitimizing shadow IT is still the value proposition of AWS to a lot of organizations. But it sucks if that's the reason the rest of us can't get an optional feature.

Re:I Followed the Official AWS Amplify Guide and Was Charged... by throw2343223434 on Thursday November 14, 2024 @05:12AM (#42134715)
But the presence of a feature does not mean it has to be used?
Re:I Followed the Official AWS Amplify Guide and Was Charged... by spacebanana7 on Thursday November 14, 2024 @05:36AM (#42134864)
The accounting teams of many orgs would want this feature to be enabled, but the tech teams wouldn't. Asking AWS not to add this feature means the tech teams win the debate before it starts.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by sokoloff on Thursday November 14, 2024 @08:12AM (#42135851)
If a company chooses to be run by accounting rather than by tech, that's fine; they should get the good and the bad outcomes that come from that choice.
Re:I Followed the Official AWS Amplify Guide and Was Charged... by kristiandupont on Thursday November 14, 2024 @06:39AM (#42135236)
That seems like a very hypothetical problem you are solving there..
Re:I Followed the Official AWS Amplify Guide and Was Charged... by sigseg1v on Thursday November 14, 2024 @09:29AM (#42136417)
I feel pain just reading this because I know where that guy is coming from; at many orgs as soon as some stupid thing is available it gets mandated by people who have no idea how it works or what impacts it will have, all the time. If it was just as simple as not enabling the stupid option surely we could just not ena...

Excuse me for a minute, I have to go reset my password that expires every 10 days and can not match any previous password and enter my enterprise mandated sms 2fa because authenticator scary -- woops my SharePoint session expired after 120 seconds of inactivity let me just redo that -- oh what's that my corporate vpn disconnected because I don't have the mandatory patches applied, let me just restart -- Woah would you look at that my network interface doesn't work anymore after that update -- yes yes I'm sorry I know my activity light on MS Teams turned yellow for 5 minutes I'm working on it, just gotta do these other 12 steps so I can reset my password to -- oh look it's time to fill out the monthly company values survey, what's that, it's due by end of day?

Re:I Followed the Official AWS Amplify Guide and Was Charged... by moribunda on Wednesday November 20, 2024 @01:45PM (#42196913)
Well, then enterprise won't use it.

OTOH for example the default quota of 55PB (yes, go check it) for your daily limit of data extraction from GBQ is funny, until you make a costly mistake, or some forked process turns zombie.

This is predatory practice, that I can't set up MONEY limits for cloud services.