You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extends the base `adk` template with [Agent-to-Agent (A2A) protocol](https://google.github.io/A2A/) support. Use this when your agent needs to interoperate with agents built on other frameworks (LangGraph, CrewAI, etc.) or when building a distributed multi-agent system.
25
+
Extends the base `adk` template with [Agent-to-Agent (A2A) protocol](https://a2a-protocol.org) support. Use this when your agent needs to interoperate with agents built on other frameworks (LangGraph, CrewAI, etc.) or when building a distributed multi-agent system.
- "Cloud SQL connection failed / Not authorized" → Runtime service account missing `roles/cloudsql.client`
180
181
- "Artifact Registry read denied" → Cloud Run service agent missing read access in CI/CD project
181
182
182
183
---
@@ -225,6 +226,22 @@ Format: `ENV_VAR=SECRET_ID` or `ENV_VAR=SECRET_ID:VERSION` (defaults to latest).
225
226
226
227
---
227
228
229
+
## Cloud SQL Permissions (Manual Deployment)
230
+
231
+
When using Cloud SQL with Cloud Run in a **manual deployment** (e.g., adding `--add-cloudsql-instances` in non-Terraform setups), you must manually grant the `Cloud SQL Client` role to the runtime service account.
232
+
233
+
Without this, the deployment may succeed but fail at runtime with `cloudsql.instances.get` authorization errors.
> **Note:** In full Terraform-managed setups (`infra cicd` / `infra single-project`), this role is configured and managed automatically.
242
+
243
+
---
244
+
228
245
## Observability
229
246
230
247
See the **agents-cli-observability** skill for observability configuration (Cloud Trace, prompt-response logging, BigQuery Analytics, third-party integrations).
@@ -293,6 +310,7 @@ For custom infrastructure patterns, consult `references/terraform-patterns.md` f
293
310
| Resource already exists |`terraform import` (see `references/terraform-patterns.md`) |
294
311
| Agent Runtime deploy timeout / hangs | Deployments take 5-10 min; check if engine was created (see Agent Runtime Specifics) |
295
312
| Secret not available | Verify `secretAccessor` granted to `app_sa` (not the default compute SA) |
313
+
| Cloud SQL connection failed / 403 | Grant `roles/cloudsql.client` to the runtime service account when using manual deployments |
296
314
| 403 on deploy | Check `deployment/terraform/iam.tf` — `cicd_runner_sa` needs deployment + SA impersonation roles in the target project |
297
315
| 403 when testing Cloud Run | Default is `--no-allow-unauthenticated`; include `Authorization: Bearer $(gcloud auth print-identity-token)` header |
298
316
| Cold starts too slow | Set `min_instance_count > 0` in Cloud Run Terraform config |
Copy file name to clipboardExpand all lines: skills/google-agents-cli-deploy/references/cloud-run.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ Available endpoints vary by project template. Check `app/fast_api_app.py` for th
26
26
27
27
Cloud SQL session infrastructure (instance, database, Cloud SQL Unix socket volume mount) is configured in `deployment/terraform/service.tf`.
28
28
29
+
> **Manual Deployment Warning:** When using Cloud SQL without Terraform (e.g., direct `gcloud run deploy` with `--add-cloudsql-instances`), you MUST manually grant `roles/cloudsql.client` to the runtime service account, otherwise the connection will fail with authorization errors.
30
+
29
31
## Network & Ingress
30
32
31
33
Default ingress is `INGRESS_TRAFFIC_ALL` (public). To restrict, change the `ingress` setting in `service.tf` to `INGRESS_TRAFFIC_INTERNAL_ONLY` (VPC only) or `INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER` (internal + GCLB).
0 commit comments