Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/setup_workload_identity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ print_header "Step 1: Enabling required Google Cloud APIs"
required_apis=(
"aiplatform.googleapis.com"
"cloudaicompanion.googleapis.com"
"cloudcode-pa.googleapis.com"
"cloudresourcemanager.googleapis.com"
"cloudtrace.googleapis.com"
"iam.googleapis.com"
Expand All @@ -220,8 +219,11 @@ required_apis=(
"monitoring.googleapis.com"
"sts.googleapis.com"
)

# Separately enable the internal-only Cloud Code API, ignoring errors
# for public users who may not have access.
gcloud services enable "cloudcode-pa.googleapis.com" --project="${GOOGLE_CLOUD_PROJECT}" || true
gcloud services enable "${required_apis[@]}" --project="${GOOGLE_CLOUD_PROJECT}"
gcloud services enable "cloudcode-pa.googleapis.com" --project="${GOOGLE_CLOUD_PROJECT}" || true
print_success "APIs enabled successfully."

# Step 2: Create Workload Identity Pool
Expand Down
Loading