AWS is looking old
AWS gives you a choice between slow or incredibly expensive. "EBS-Only" is worthless unless your workloads could run fine on a single 20 year old hard drive. The SSD options are limited and expensive. You can maybe get EBS running faster if you pay for huge IOPS upgrades, tune the kernel, disable synchronous writes, and set aside 10+ GB for filesystem caching.
m5d.8xlarge : 36 CPU, 128GB RAM, 2x600 GB NVMe, 10 Gbe networking costs $1.808 an hour. That's ~ $79000 over 5 years for specs that are within the range of a $6000 build-to-order.
So you want more modern specs? How about a i4i.32xlarge? That's ~ $481000 for 5 years. There's going to be some downtime so better get 4 of them for about $2 million for 5 years, just to be safe. Don't forget to reserve in advance to get a little discount and make sure that Amazon doesn't discontinue your hardware after a batch of hardware failures.
Don't even get me started on Amazon's APIs that are throttled to rates one might expect 30 years ago.