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
- 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.
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
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 theserviceusage.services.enablepermission. Learn how to grant roles. -
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 theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
-
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 theserviceusage.services.enablepermission. Learn how to grant roles. Di konsol Google Cloud , buka halaman Instances.
Klik Create new.
Untuk Name, masukkan
my-instance.Klik Buat.
Di JupyterLab, pilih File > New > Notebook.
Dalam dialog Select kernel, pilih Python 3, lalu klik Select.
File notebook baru akan terbuka.
Di konsol Google Cloud , buka halaman Instances.
Pilih instance yang ingin Anda hentikan.
Klik Stop.
Di konsol Google Cloud , buka halaman Instances.
Pilih instance yang ingin Anda mulai.
Klik Start.
Di konsol Google Cloud , buka halaman Instances.
Pilih instance yang ingin Anda reset.
Klik Reset, lalu klik Reset untuk mengonfirmasi.
Di konsol Google Cloud , buka halaman Instances.
Pilih baris yang berisi instance yang ingin dihapus.
Klik Delete. (Bergantung pada ukuran jendela, tombol Delete mungkin ada di menu opsi .)
Untuk mengonfirmasi, klik Confirm.
- Baca Pengantar instance Vertex AI Workbench.
- Untuk menggunakan notebook yang membantu Anda mulai menggunakan Vertex AI dan layanan Google Cloud lainnya, lihat Tutorial notebook Vertex AI.
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
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
Menghentikan instance
Memulai instance
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.
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
Reset, lalu klik Reset untuk mengonfirmasi.