Oh really? Ever try building, staffing, powering, cooling and equipping a data center? And then build a DR? Let me tell you, my company has foolishly done that just in the past ten years and WE are screaming uncle! We're now transitioning to AWS because it's much, much, much cheaper!
The biggest eye-opener? Not only is the physical part of the data center a super expensive ongoing expense - staff, server life cycles, power, property tax - but the software licenses (we gotta have support!) will EAT YOU ALIVE! I've transitioned many projects to AWS and was able to justify it on the ongoing licensing costs alone - never mind all the other costs related to building a data center.
I bet Pinterest did their homework and realized the $3 billion they're going to pay to AWS is cheaper than building, staffing, and running their own infrastructure. That's the conclusion we came to - after building our own data centers.