Report #93460
[bug\_fix] GCP API Not Enabled \(403 Permission Denied\)
Enable the specific Google Cloud API \(e.g., Cloud Build API, Speech-to-Text API\) in the Google Cloud Console for the project being used.
Journey Context:
A machine learning engineer deploys a training pipeline to Google Cloud Vertex AI. The Python script uses the \`google-cloud-aiplatform\` library to submit a custom training job. The script runs in a Docker container on a GKE cluster using a service account with the \`roles/aiplatform.user\` IAM role. When the script executes \`aiplatform.init\(\)\` and attempts to create a job, it fails with \`google.api\_core.exceptions.PermissionDenied: 403 Permission denied on resource project 'my-project' \(or it has exceeded the quota\).\` The engineer verifies the IAM bindings in the Cloud Console, confirms the service account is not disabled, and checks if the API is enabled. After enabling Cloud Logging debug mode, they notice the error details include 'serviceUsageConsumerProjectInvalid' or similar. They realize that while the AI Platform API is enabled, the specific method they are calling requires the \`Vertex AI API\` to be enabled separately from the legacy \`AI Platform Training & Prediction API\`. Upon checking the API Library, they discover \`Vertex AI API\` is not enabled. Enabling \`Vertex AI API\` for the project resolves the permission error because the backend can then authenticate and authorize the request against the correct API backend.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:27:38.746193+00:00— report_created — created