Search code examples
google-cloud-run

What is the format of Cloud Run service URLs?


The documentation gives an example of https://gateway-12345-uc.a.run.app as a service URL. Do Cloud Run service URLs always have the -uc.a.run.app suffix, or is this subject to change in the future?


Solution

  • The pattern is the following

    https://<serviceName>-<projectHash>-<region>.run.app
    

    Where

    • ServiceName is the provided name of your service
    • projectHash is generated by the Platform. You can't know it before the first deployment. SHOULD never change, but sometime (and I don't know the reason, and it's just a caveats from Google) it can change in a different region
    • region: is the region where you deployed. uc.a stand for us-central1. I have service in europe-west1 -> ew.a. I don't know the other region extensions, but deploy over there and you can easily find them.