Buat instance menggunakan konsol Google Cloud

Pelajari cara membuat instance Vertex AI Workbench dan membuka JupyterLab menggunakan Google Cloud konsol. Halaman ini juga menjelaskan cara menghentikan, memulai, mereset, atau menghapus instance.

Sebelum memulai

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Notebooks API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  6. Verify that billing is enabled for your Google Cloud project.

  7. Enable the Notebooks API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  8. Peran yang diperlukan

    Untuk mendapatkan izin yang diperlukan untuk membuat dan mengelola instance Vertex AI Workbench, minta administrator untuk memberi Anda peran IAM Notebooks Admin (roles/notebooks.admin) di project. Untuk mengetahui informasi selengkapnya tentang cara memberikan peran, lihat Mengelola akses ke project, folder, dan organisasi.

    Anda mungkin juga bisa mendapatkan izin yang diperlukan melalui peran khusus atau peran bawaan lainnya.

    Membuat instance

    1. Di konsol Google Cloud , buka halaman Instances.

      Buka Instances

    2. Klik  Create new.

    3. Untuk Name, masukkan my-instance.

    4. Klik Buat.

    Setelah menyelesaikan tugas yang dijelaskan dalam dokumen ini, Anda dapat menghindari penagihan berkelanjutan dengan menghapus resource yang Anda buat. Untuk mengetahui informasi selengkapnya, lihat Pembersihan.

    Buka JupyterLab

    Setelah Anda membuat instance, Vertex AI Workbench akan otomatis memulai instance tersebut. Saat instance siap digunakan, Vertex AI Workbench akan mengaktifkan link Open JupyterLab.

    Di samping nama instance, klik Open JupyterLab.

    Instance Vertex AI Workbench akan membuka JupyterLab.

    Buka file notebook baru

    1. Di JupyterLab, pilih File > New > Notebook.

    2. Dalam dialog Select kernel, pilih Python 3, lalu klik Select.

      File notebook baru akan terbuka.

    Menghentikan instance

    1. Di konsol Google Cloud , buka halaman Instances.

      Buka Instances

    2. Pilih instance yang ingin Anda hentikan.

    3. Klik  Stop.

    Memulai instance

    1. Di konsol Google Cloud , buka halaman Instances.

      Buka Instances

    2. Pilih instance yang ingin Anda mulai.

    3. Klik  Start.

    Mereset instance

    Mereset instance akan menghapus total isi memori instance Anda secara paksa dan mereset instance ke status awal. Untuk mempelajari lebih lanjut cara kerja mereset instance, lihat Operasi reset.

    1. Di konsol Google Cloud , buka halaman Instances.

      Buka Instances

    2. Pilih instance yang ingin Anda reset.

    3. Klik Reset, lalu klik Reset untuk mengonfirmasi.

    Pembersihan

    Agar akun Google Cloud Anda tidak dikenai biaya untuk resource yang digunakan pada halaman ini, ikuti langkah-langkah berikut.

    Jika Anda membuat project baru untuk mempelajari instance Vertex AI Workbench dan Anda tidak lagi memerlukan project tersebut, maka hapus project tersebut.

    Jika Anda menggunakan project yang sudah ada, hapus resource yang Anda buat untuk menghindari timbulnya biaya pada akun Anda: Google Cloud

    1. Di konsol Google Cloud , buka halaman Instances.

      Buka Instances

    2. Pilih baris yang berisi instance yang ingin dihapus.

    3. Klik  Delete. (Bergantung pada ukuran jendela, tombol Delete mungkin ada di menu opsi  .)

    4. Untuk mengonfirmasi, klik Confirm.

    Langkah berikutnya

    1. Baca Pengantar instance Vertex AI Workbench.
    2. Untuk menggunakan notebook yang membantu Anda mulai menggunakan Vertex AI dan layanan Google Cloud lainnya, lihat Tutorial notebook Vertex AI.