firebase-tools
firebase-tools copied to clipboard
Firebase extensions non-interactive mode
Based on issue #4625, --params is deprecated and according to @joehan, the new steps are as follows:
firebase ext:install algolia/firestore-algolia-searchfirebase deploy --only extensions --project proj1
The problem is firebase deploy is not a solution to non-interactive mode to deploy to multiple projects (aka staging and prod) because, in the install command, a secret was set up first for the initial project.
When I run, firebase deploy --only extensions --project proj2, I get the following error saying the secret doesn't exist.
References
https://firebase.google.com/docs/extensions/manifest#projectspecific support for multiple env for different projects
[REQUIRED] Environment info
firebase-tools: 13.11.2
Platform: windows
[REQUIRED] Test case
firebase ext:install algolia/firestore-algolia-searchfirebase deploy --only extensions --project proj1firebase deploy --only extensions --project proj2
[REQUIRED] Steps to reproduce
firebase ext:install algolia/firestore-algolia-searchfirebase deploy --only extensions --project proj1firebase deploy --only extensions --project proj2
[REQUIRED] Expected behavior
Be able to deploy to multiple projects non interactively
[REQUIRED] Actual behavior
It errors instead.
error while granting access secret role to service account "proj2" and secret "projects/****/secrets/firestore-algolia-search/versions/1": generic::permission_denied: retry budget exhausted (5 attempts): [secretmanager] GrantServiceAccountAccessSecretPermission: GetIamPolicy for Service Account [email protected] and secret projects/****/secrets/firestore-algolia-search failed: generic::permission_denied: Permission 'secretmanager.secrets.getIamPolicy' denied for resource 'projects/****/secrets/firestore-algolia-search' (or it may not exist).
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.