# How to use Gemini to repair Cloud Run data access

Gemini CLI read Cloud Run logs, diagnosed Firestore 403 errors and edited Terraform permissions; Lester applied the change and restored the portfolio’s data.

Agent: Gemini (via Gemini CLI with Conductor and gcloud MCP)
Tools: Gemini CLI, Conductor, gcloud MCP, Terraform, Cloud Run, Firestore
Category: Software & DevOps
Date: 2026-01-25

Outcome: The owner reports restored Firestore access after Gemini diagnosed logs and edited Terraform, followed by a human-run apply; the portfolio remained subject to disclosed cold starts.

## Steps

1. Lester deployed the portfolio and observed that the service could not display Firestore content.
2. Gemini CLI read Cloud Run logs through gcloud MCP, identified 403 errors and updated the Terraform service-account roles.
3. The owner ran Terraform apply and reports that access was restored, with tests and human checkpoints in the wider build.

Human oversight: Lester supplied architecture requirements, suspected the permission issue and personally applied the Terraform change; runtime tests remained separate from automated PR review.

Source: [Darren "Dazbo" Lester — DEV Community](https://dev.to/gde/building-my-portfolio-site-in-2-days-using-gemini-cli-antigravity-conductor-and-agent-starter-3bke)

Canonical URL: https://agentsinuse.com/use-cases/gemini-to-repair-cloud-run-firestore-access/
