Panduan GCP Professional Data Engineer & AI Engineer: Mengatasi Masalah Izin IAM Google Cloud Document AI Workbench

Spesialisasi Rekayasa Perangkat Lunak: Ditulis oleh Aldian Fazrihady — Senior Cloud Engineer, GCP Professional Cloud Architect, GCP Professional Data Engineer, Backend Engineer, AI Application Engineer & Full Stack Engineer.

1. Mengapa Pelatihan Custom Extractor di Google Cloud Document AI Gagal Mengakses Bucket GCS?

Saat membangun pipeline ekstraksi dokumen otomatis sebagai GCP Professional Data Engineer dan AI Application Engineer menggunakan Google Cloud Document AI Workbench, proses impor dataset dan pelatihan model sebenarnya dieksekusi oleh Google-managed Service Agent internal (service-PROJECT_NUMBER@gcp-sa-prod-dai-core.iam.gserviceaccount.com), bukan oleh akun pengguna atau Service Account aplikasi Anda.

2. Konfigurasi IAM Least-Privilege pada Google Cloud Storage untuk Document AI

Untuk memperbaiki kegagalan akses bucket GCS saat membaca dokumen PDF berlabel dan menulis artefak evaluasi model, aktifkan tampilan Include Google-provided role grants di konsol IAM atau berikan peran roles/storage.objectAdmin melalui Terraform/gcloud CLI seperti pada panduan berikut:

{
  "status": {
    "code": 7,
    "message": "Does not have permissions [storage.objects.get] in the bucket"
  }
}
service-{PROJECT_NUMBER}@gcp-sa-prod-dai-core.iam.gserviceaccount.com
gcloud projects add-iam-policy-binding {YOUR_PROJECT_ID} \
  --member="projectViewer:{YOUR_PROJECT_ID}" \
  --role="roles/storage.legacyObjectReader"

Ringkasan Arsitektur Produksi & Praktik Terbaik (Checklist Teknis)


About the Author — Hire Aldian Fazrihady (Cloud Engineer, GCP Professional Cloud Architect, GCP Professional Data Engineer, Backend, AI & Full Stack Engineer)

Aldian Fazrihady is a Top-Rated Senior Cloud Engineer, GCP Professional Cloud Architect (Google Cloud Certified), GCP Professional Data Engineer (Google Cloud Certified), Backend Engineer (Python, Django, FastAPI, Go, PostgreSQL), AI Application Engineer (LLMs, RAG, MCP, Google ADK, LangGraph), and Full Stack Engineer (React, Next.js, TypeScript) with 15+ years of production software engineering experience.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD / Rp 1.000.000) | View Live AI Portfolio | Send a Direct Message

Related Engineering Articles

Engineering Role Pillar Guides & Category Hubs