Live data from Hacker News

AWS in 2025: Stuff you think you know that's now wrong

lastweekinaws.com

101–110 of 284 posts

Re: AWS in 2025: Stuff you think you know that's now wrong

#101
post #26

> You don’t have to randomize the first part of your object keys to ensure they get spread around and avoid hotspots. As of when? According to internal support, this is still required as of 1.5 years ago.

He's not talking about the prefix, just the beginning of the object key.

The prefix is not separate from the object key. It's part of it. There's no randomization that needs to be done on either anymore.

Re: AWS in 2025: Stuff you think you know that's now wrong

#102
post #38

Earlier quoted context omitted.

I just stick CloudFront in front of those buckets. You don't need to expose the bucket at all then and can point it at a canonical hostname in your DNS.

For the sake of understanding, can you explain why putting CloudFront in front of the buckets helps?

Cloudfront allows you to map your S3 with both

- signed url's in case you want a session base files download

- default public files, for e.g. a static site.

You can also map a domain (sub-domain) to Cloudfront with a CNAME record and serve the files via your own domain.

Cloudfront distributions are also CDN based. This way you serve files local to the users location, thus increasing the speed of your site.

For lower to mid range traffic, cloudfront with s3 is cheaper as the network cost of cloudfront is cheaper. But for large network traffic, cloudfront cost can balloon very fast. But in those scenarios S3 costs are prohibitive too!

Re: AWS in 2025: Stuff you think you know that's now wrong

#103
post #2

> You don’t have to randomize the first part of your object keys to ensure they get spread around and avoid hotspots. Not strictly true.

I should have been more clear. You still need to partition, but randomizing the prefixes hasn't been needed since 2018: https://web.archive.org/web/20240227073321/https://aws.amazo...

Re: AWS in 2025: Stuff you think you know that's now wrong

#104
post #61

Earlier quoted context omitted.

VPC sharing is the sleeper here. You can do cross account networking all in the same VPC and skip all the expensive stuff.

as long as your VPCs aren't too big, yea.

Shared vpcs can get pretty big. Even if you approach the NAU limit you can use privatelink or TGW to have more large shared vpcs.

Re: AWS in 2025: Stuff you think you know that's now wrong

#105
Can no longer login to my AWS account, because I never set up MFA.

Want to set up MFA ... login required to request device.

Yes, I know, they warned us far ahead of time. But not being able to request one of their MFA devices without a login is ... sucky.

Re: AWS in 2025: Stuff you think you know that's now wrong

#106

I have a preempt-able workload for which I could use Spot instances or Savings Plans. Does anyone have experience running Spot in 2025? If you were to start over, would you keep using Spot? - I observe with pricing that Spot is cheaper - I am running on three different architectures, which should limit Spot unavailability - I've been running about 50 Spot EC2 instances for a month without issue. I'm debating turning…

In terms of cost, from cheapest to most expensive:

1. Spot with autoscaling to adjust to demand and a savings plan that covers the ~75th percentile scale

2. On-demand with RIs (RIs will definitely die some day)

3. On-demand with savings-plans (More flexible but more expensive than RIs)

3. Spot

4. On-demand

I definitely recommend spot instances. If you're greenfielding a new service and you're not tied to AWS, some other providers have hilariously cheap spot markets - see http://spot.rackspace.com/. If you're using AWS, definitely auto-scaling spot with savings plans are the way to go. If you're using Kubernetes, the AWS Karpenter project (https://karpenter.sh/) has mechanisms for determining the cheapest spot price among a set of requirements.

Overall tho, in my experience, ec2 is always pretty far down the list of AWS costs. S3, RDS, Redshift, etc wind up being a bigger bill in almost all past-early-stage startups.

Re: AWS in 2025: Stuff you think you know that's now wrong

#107
post #98
post #95

Earlier quoted context omitted.

>S3 is the right choice for causal users. It's so simple for storing and serving a static website. Are there good and cheap alternatives?

Yeah, your classic web hoster. Just today I uploaded a static website to one via FTP.

Really? If I remember correctly: My Static website served from S3 + CF + R53 by about 0.67$ / mo, 0.5 being R53 from that, 0.16 being CF, S3 being 0.01 for my page.

BTW: Is GitHub Page still free for custom domains? (I don't know the EULA)

Re: AWS in 2025: Stuff you think you know that's now wrong

#108
> Glacier restores are also no longer painfully slow.

I had a theory (based on no evidence I'm aware of except knowing how Amazon operates) that the original Glacier service operated out of an Amazon fulfillment center somewhere. When you put it a request for your data, a picker would go to a shelf, pick up some removable media, take it back, and slot it into a drive in a rack.

This, BTW, is how tape backups on timesharing machines used to work once upon a time. You'd put in a request for a tape and the operator in the machine room would have to go get it from a shelf and mount it on the tape drive.

Re: AWS in 2025: Stuff you think you know that's now wrong

#109

Earlier quoted context omitted.

Gateway endpoints are free. Network endpoints (which are basically AWS-managed ENIs that can tunnel through VPC boundaries) are not free. S3 can use either, and we recommend establishing VPC Gateway endpoints by default whenever you need S3 access. (Disclaimer: I work for AWS, opinions are my own.)

That's fascinating! I hadn't found that in the documentation; everything seems to steer people towards PrivateLink, not gateway endpoints. Would you recommend using VPC Gateway even on a public VPC that has an Internet gateway (note: not a NAT gateway)? Or only on a private VPC or one with a NAT gateway?

> everything seems to steer people towards PrivateLink, not gateway endpoints

Gateway endpoints only work for some things.

Re: AWS in 2025: Stuff you think you know that's now wrong

#110
post #79
post #41

Earlier quoted context omitted.

Fine for when you have no NAT gateway and have a subnet with truly no egress allowed. But if you're adding a NAT gateway, it's crazy that you need to setup the gateway endpoint for S3/DDB separately. And even crazier that you have to pay for private links per AWS service endpoint.

There's very real differences between NAT gateways and VPC Gateway Endpoints. NAT gateways are not purely hands-off, you can attach additional IP addresses to NAT gateways to help them scale to supporting more instances behind the NAT gateway, which is a fundamental part of how NAT gateways work in network architectures, because of the limit on the number of ports that can be opened through a single IP address. When…

My objections here are in terms of how this manifests in billing. Especially when you consider the highway robbery rates for internet egress.
Post reply on HN