Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Untuk men-deploy aplikasi di App Engine, Anda harus membuat Google Cloud project,
yang merupakan container tingkat atas yang menyimpan resource aplikasi App Engine Anda serta Google Cloud resource lainnya.
Dalam tugas ini, Anda akan membuat project Google Cloud dan aplikasi App Engine
untuk menyimpan setelan, resource komputasi, kredensial, dan metadata
untuk aplikasi Anda.
Jika Anda sudah memiliki Google Cloud project dengan App Engine dan Cloud Build API yang diaktifkan, lanjutkan ke bagian Menulis Layanan Web Anda.
Buat Google Cloud project
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.
[[["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-09-04 UTC."],[[["\u003cp\u003eA Google Cloud project is required to deploy an app on App Engine, serving as a container for your application resources.\u003c/p\u003e\n"],["\u003cp\u003eCreating an App Engine application involves selecting a region for your computing resources, which cannot be changed later.\u003c/p\u003e\n"],["\u003cp\u003eFor new Node.js web services, Cloud Run is recommended as an alternative to App Engine deployment.\u003c/p\u003e\n"],["\u003cp\u003eIf you already have a Google Cloud project set up with App Engine and the Cloud Build API, you can proceed directly to writing your web service.\u003c/p\u003e\n"]]],[],null,["# Create your project\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\n| **Note:** If you are deploying a new Node.js web service to Google Cloud, we recommend getting started with [Cloud Run](/run/docs/quickstarts/build-and-deploy/deploy-nodejs-service).\n\nTo deploy your app on App Engine, you must create a Google Cloud project,\nwhich is a top level container that holds your App Engine\napplication resources as well as other Google Cloud resources.\n\nIn this task, you create a Google Cloud project and an App Engine\napplication to store settings, computing resources, credentials, and metadata\nfor your app.\n\nIf you already have a Google Cloud project with App Engine and the\nCloud Build API enabled, continue to\n[Writing Your Web Service](/appengine/docs/standard/nodejs/building-app/writing-web-service).\n\nCreate a Google Cloud project\n-----------------------------\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-\n\n\n Enable the Cloud Build API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=cloudbuild.googleapis.com)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\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\n-\n\n\n Enable the Cloud Build API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=cloudbuild.googleapis.com)\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n1. Create an App Engine application for your\n Google Cloud project in the Google Cloud console.\n\n [Open app creation](https://console.cloud.google.com/appengine/create?lang=nodejs&st=true)\n2. Select a region where you want your app's computing resources located.\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n | **Note:** After you create your App Engine app, you cannot change the region. To reduce latency, choose the region closest to your app's intended users. For more information on the available regions, see [App Engine Locations](/appengine/docs/locations).\n3. Due to [changes in the default\n behavior for how Cloud Build uses service accounts](/build/docs/cloud-build-service-account-updates) in new projects, and [secure-by-default\n organization policy changes](/resource-manager/docs/secure-by-default-organizations), you might need to grant additional roles to your deploying service account. For more information on granting specific roles, see the [troubleshooting guide](/appengine/docs/standard/troubleshooter/deployment#default-sa-permissions).\n\n\u003cbr /\u003e\n\nNext steps\n----------\n\nNow that your Google Cloud project is set up, you're ready to\n[write a basic web service with Node.js](/appengine/docs/standard/nodejs/building-app/writing-web-service)."]]