Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Ganti LOCATION dengan nama region repositori container Anda, misalnya, us-west2.
Region Cloud Run
Cloud Run bersifat regional, yang berarti bahwa infrastruktur yang
menjalankan layanan Cloud Run Anda terletak di region tertentu dan dikelola
oleh Google agar tersedia secara redundan di
semua zona dalam region tersebut.
Memenuhi persyaratan latensi, ketersediaan, atau ketahanan adalah faktor utama
untuk memilih region tempat layanan Cloud Run dijalankan.
Pada umumnya, Anda dapat memilih region yang paling dekat dengan pengguna Anda, tetapi Anda harus mempertimbangkan
lokasi produk Google Cloud
lainnya yang digunakan oleh layanan Cloud Run Anda.
Menggunakan Google Cloud produk secara bersamaan di beberapa lokasi dapat memengaruhi
latensi serta biaya layanan Anda.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-21 UTC."],[],[],null,["# Setting up your environment\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n1. [Enable the Cloud Run Admin API](http://console.cloud.google.com/apis/library/run.googleapis.com)\n2. [Install and initialize](https://cloud.google.com/sdk/docs/) the gcloud CLI.\n3. Update components: \n\n ```bash\n gcloud components update\n ```\n4. Optionally, set your platform and default Cloud Run region with the gcloud properties to avoid prompts from the command line: \n\n ```\n gcloud config set run/region REGION\n ```\n replacing \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with the default [region](#before-you-begin) you want to use.\n5. Optionally, [install Docker](https://docs.docker.com/install/) to build [Docker containers locally](/run/docs/building/containers#building_using_a_dockerfile). You can configure Docker to get access to Artifact Registry using the [gcloud CLI credential helper](/artifact-registry/docs/docker/authentication#gcloud-helper): \n\n ```bash\n gcloud auth configure-docker LOCATION-docker.pkg.dev\n ```\n Replace \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the region name of your container repository, for example, `us-west2`.\n\n### Cloud Run regions\n\n\u003cbr /\u003e\n\nCloud Run is regional, which means the infrastructure that\nruns your Cloud Run services is located in a specific region and is\nmanaged by Google to be redundantly available across\n[all the zones within that region](/docs/geography-and-regions).\n\n\u003cbr /\u003e\n\nMeeting your latency, availability, or durability requirements are primary\nfactors for selecting the region where your Cloud Run services are run.\nYou can generally select the region nearest to your users but you should consider\nthe location of the [other Google Cloud\nproducts](/about/locations#locations) that are used by your Cloud Run service.\nUsing Google Cloud products together across multiple locations can affect\nyour service's latency as well as cost. \n\nCloud Run is available in the following regions:\n\n#### Subject to [Tier 1 pricing](/run/pricing#tables)\n\n- `asia-east1` (Taiwan)\n- `asia-northeast1` (Tokyo)\n- `asia-northeast2` (Osaka)\n- `asia-south1` (Mumbai, India)\n- `europe-north1` (Finland) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-north2` (Stockholm) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-southwest1` (Madrid) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-west1` (Belgium) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-west4` (Netherlands) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-west8` (Milan)\n- `europe-west9` (Paris) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `me-west1` (Tel Aviv)\n- `northamerica-south1` (Mexico)\n- `us-central1` (Iowa) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `us-east1` (South Carolina)\n- `us-east4` (Northern Virginia)\n- `us-east5` (Columbus)\n- `us-south1` (Dallas) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `us-west1` (Oregon) [Low CO~2~](/sustainability/region-carbon#region-picker)\n\n#### Subject to [Tier 2 pricing](/run/pricing#tables)\n\n- `africa-south1` (Johannesburg)\n- `asia-east2` (Hong Kong)\n- `asia-northeast3` (Seoul, South Korea)\n- `asia-southeast1` (Singapore)\n- `asia-southeast2 ` (Jakarta)\n- `asia-south2` (Delhi, India)\n- `australia-southeast1` (Sydney)\n- `australia-southeast2` (Melbourne)\n- `europe-central2` (Warsaw, Poland)\n- `europe-west10` (Berlin) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-west12` (Turin)\n- `europe-west2` (London, UK) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `europe-west3` (Frankfurt, Germany)\n- `europe-west6` (Zurich, Switzerland) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `me-central1` (Doha)\n- `me-central2` (Dammam)\n- `northamerica-northeast1` (Montreal) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `northamerica-northeast2` (Toronto) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `southamerica-east1` (Sao Paulo, Brazil) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `southamerica-west1` (Santiago, Chile) [Low CO~2~](/sustainability/region-carbon#region-picker)\n- `us-west2` (Los Angeles)\n- `us-west3` (Salt Lake City)\n- `us-west4` (Las Vegas)\n\nIf you already created a Cloud Run service, you can view the\nregion in the Cloud Run dashboard in the\n[Google Cloud console](https://console.cloud.google.com/run). \nOK\n\nOptional: Develop a new service using Cloud Code tools\n------------------------------------------------------\n\nInstead of using the Google Cloud console or the Google Cloud CLI to create a new\nservice, you can use the following Cloud Code tools:\n\n- [Intellij](/code/docs/intellij/creating-a-cloud-run-app)\n- [VSCode](/code/docs/vscode/creating-a-cloud-run-app)\n- [Cloud Shell](/code/docs/shell/creating-a-cloud-run-app)\n\nWhat's next\n-----------\n\nTo learn how to build a container from code source, push to Artifact Registry,\nand deploy, see:\n\n- [Quickstart: Build and Deploy](/run/docs/quickstarts#build-and-deploy-a-web-service)\n- [Developing your service](/run/docs/developing)\n- [Building containers](/run/docs/building/containers)"]]