Compare commits

...
Author SHA1 Message Date
Andrew BeveridgeandClaude Opus 4.5 463b80331c fix(infrastructure): Import existing Firestore index into Pulumi state
The jobs customer_email/made_for_you index was created before Pulumi
management. Adding import_ directive to adopt it into state.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:32:30 -08:00
+5 -1
View File
@@ -73,7 +73,11 @@ def create_database() -> dict:
firestore.IndexFieldArgs(field_path="made_for_you", order="ASCENDING"),
firestore.IndexFieldArgs(field_path="created_at", order="DESCENDING"),
],
opts=pulumi.ResourceOptions(depends_on=[firestore_db]),
opts=pulumi.ResourceOptions(
depends_on=[firestore_db],
# Import existing index created before Pulumi managed it
import_="projects/nomadkaraoke/databases/(default)/collectionGroups/jobs/indexes/CICAgOi36pgK",
),
)
# Sessions: query by user_email + is_active, order by created_at