For a function to access cloud services with an internal endpoint, the function and the cloud service that you want to access must be in the same region.