I really find that assertion hard to believe. AWS is notoriously expensive and oddly enough its added value comes in the form of proprietary technologies which require non-transferable tech skills. The lock-in overload goes to the extreme of leading technicians to specialize exclusively in AWS services which leads to the infamous title of AWS engineer. This doesn't happen by chance, but by design. It's like a very expensive mousetrap designed to help victims get in but being practically very hard if not impossible to get out.
No one is forcing you to use AWS. You could build your own private cloud datacenter, implement OpenStack, configure k8 and deploy your docker containers. If a server fails, replace it. Install your updates etc. To me that sounds like a lot of work (assuming I don't have a large organisation behind me) and I would rather have some of that setup for me. It's a trade-off...
RDS - hosted non proprietary databases.
EC2 - Standard VM hosting
Redshift - a proprietary OLAP database that uses standard Postgres drivers
S3 - object storage. But there are so many S3 API compatible storage providers, there is little “lock-in”
But the fact is that lock-in is overrated. Your CTO is statistically as likely to move their entire infrastructure just because a few engineers promised it would be “seamless” as your DBA is going to move away from their Oracle installation because developers “used the Repository Pattern to abstract database access”.
Google open sourced k8 so that they can get a pie from AWS and then lock you in with other proprietary services.
They have invested millions into creating cloud software. If they open source it, what is stopping other firms from taking that software and creating their own cloud offering?
Would you work for free? Would you open source all the work you have done?
(Also, yes, I open source as much of my work as possible, and I'm paid to write it)
Also, AWS is BUILT on open source, they just don't open source the extra bits they added on top. Just like how Microsoft took an open source tcp/ip stack and open source web browser, added some stuff, and called it their own.
Why would they open source it? To provide a way out to customers. They don't even provide a mongo-like license.
I can't forget a session at Google I/O how they were insisting that appengine is not open source because we are too dumb to understand it....yeah sure what about k8, now? I can run it on my Mac, I even contributed few commits.