APIs are not what's hard IMO. Creating a layer simulating S3 API is pretty straightforward.
Designing and implementing a highly available and resilient storage solution on-prem is much more harder task that will take 99% of time & budget to do properly compared to a compatibility layer.