THE BLUEPRINT HANDBOOK 4 min read
Roll back & retire
Recover from a bad release or carefully remove a project.
Operating notes for a personal platform. Its repository is private, so read these as a reference: the commands need access that only its owner has.
Prefer a forward fix
Revert the bad change on a branch, open a fix: PR, and release it through the normal process. This keeps the source and the deployed app in agreement.
A code rollback does not undo database migrations. Check schema compatibility before sending an older revision traffic, and prepare a separate data recovery plan when needed.
Restore an earlier revision in an incident
When production is down and a release would take too long, an operator can send traffic to a known good revision. Use the project variables and list revisions first.
gcloud run revisions list --service "$PROJECT-$APP" \
--project "$GCP_PROJECT" --region "$REGION"Set PREVIOUS_REVISION to the verified revision name. Review the target, then deliberately run the traffic change.
PREVIOUS_REVISION="replace-with-the-known-good-revision"
gcloud run services update-traffic "$PROJECT-$APP" \
--project "$GCP_PROJECT" --region "$REGION" \
--to-revisions "$PREVIOUS_REVISION=100"Retire a project in order
Retirement has not yet been proven end to end on this platform. Work with the platform operator, review each plan, and back up any database you need to keep.
- Destroy the project's services from the project's
infra/, using the same variables as its release workflow. Review the destroy plan before applying it. - Remove the project from Blueprint's
infra/projects.auto.tfvarsthrough a PR, then review the platform plan. - Expect the repository to be archived and the database to remain. Empty the project's state bucket only after the services are gone and any required state backup is saved.
- Apply the reviewed platform change. The runner keeper removes the archived repository's runners within five minutes.
The project and the platform have separate state. Removing the project entry first does not correctly tear down its services.
Reviewed October 4, 2026.