Jan (@JanVladimirMostert) has mentioned nearly everything I have to say. However, I think that a story lacks something from the person if there is no personal touch.
I used to work with the Netflix API. Some really cool application. Now, one fine day these people decide to pull the plug (if you think about it, quite literally so). All of my applications came crashing down. Quite a few developers were raged at this. But then, what can we do...
That was a slap on my face; a didactic one, with that. After that, I have never tied an application to any service. Let me give you a couple of examples:
Another example of technology-lockdown is when I used HDFC's payment gateway. The Reserved Bank of India changed its rules, and made VbV and MasterCard SecureCode mandatory. Unable to handle those error codes, quite a few services broke.
The bottom line: don't make a platform-dependent architecture. For example, if you're deploying something to Google Cloud, make sure that you're able to recover in case of a disaster.