Tuesday, May 21, 2024
GCP IAM Juara GCP

Configuring IAM Permissions with gcloud

IAM

“Configuring IAM Permissions with gcloud”

Daftar Isi

Pengantar

Orang yang baru mengenal Google Cloud perlu memahami IAM untuk sepenuhnya memahami cara mengonfigurasi izin yang diperlukan untuk beban kerja mereka. Lab ini membahas tiga area umum yang harus dipahami peserta terkait IAM dan gcloud: penginstalan dan konfigurasi lingkungan gcloud, penggunaan beberapa konfigurasi gloud, dan penggunaan akun layanan.

Solusi

Task 1. Install and configure gcloud

  • Buka menu Navigation Menu > Compute Engine > VM instances.
  • SSH pada VM centos-clean

Task 2. Download and install the Cloud SDK

  • Cek gcloud jika sudah terinstall
gcloud
  • Install gcloud
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud auth login --no-launch-browser

Manage Cloud SDK components

  • Cek via ssh
gcloud components list
  • Install beta component
gcloud components install beta

Configure the gcloud environment

  • Via SSH
gcloud compute instances create lab-1
gcloud config list
gcloud compute zones list
gcloud config set compute/zone ZONE
cat ~/.config/gcloud/configurations/config_default

Task 3. Create and switch between multiple IAM configurations

  • Buka new gcloud
gcloud init --no-launch-browser

Test the new account

  • connect via SSH
gcloud compute instances list
gcloud compute instances create lab-2
gcloud config configurations activate default

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Configuring IAM Permissions with gcloud. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

(Visited 97 times, 1 visits today)
Baca Juga :  Serverless Cloud Run Development: Challenge Lab

Similar Posts