In practice it is actually super easy if you align yourself with say Cloud Run or something like that.
It’s also worth pointing out that despite the killed by Google meme, at least in the cloud side of the business they are actually super clear about what will never be on the chopping block and you can rely on so it’s not actually all that surprising or hard to work around in practice.
At a minimum one needs a good abstraction layer to facilitate lift and shift. Docker or k8s etc