Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

fix(infra): ignore Cloud SQL database flag changes in Pulumi (#3002)

zombee0f94df37135a2
diff --git a/apps/infra/docs/gcp/deployment.md b/apps/infra/docs/gcp/deployment.md
index 445d3486e..56eed49b8 100644
--- a/apps/infra/docs/gcp/deployment.md
+++ b/apps/infra/docs/gcp/deployment.md
@@ -80,6 +80,11 @@ the fleet necessarily converges. Check gcloud and ADC identity separately for cr
Use [networking](networking.md) for private routes/firewalls and [ClickHouse](clickhouse.md) for ingestion failures.
For locks, refresh or removal, follow [shared recovery](../deployment.md#recovery-and-teardown).
+New Cloud SQL instances start with `log_connections=on`. Operators manage the full flag list after creation.
+Refresh the Pulumi checkpoint before the first update to an existing instance and after changing flags outside Pulumi.
+
+Subsequent updates reuse the flags recorded in that checkpoint.
+
## Customer domain HTTPS
The GCP deployment automatically supplies the certificate project and the existing proxy certificate map to the API.
diff --git a/apps/infra/mdeploy/stack/providers/gcp/database.ts b/apps/infra/mdeploy/stack/providers/gcp/database.ts
index 4923626c7..525eb4013 100644
--- a/apps/infra/mdeploy/stack/providers/gcp/database.ts
+++ b/apps/infra/mdeploy/stack/providers/gcp/database.ts
@@ -131,6 +131,7 @@ export const gcpDatabaseProvider =
// an API delete; `protect` refuses one the engine would make.
dependsOn,
protect: request.protected,
+ ignoreChanges: ['settings.databaseFlags'],
},
)