New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pass parameterized config value to functions.storage.bucket(<param>).object().onFinalize #1413
Comments
Hi @indicava. Thanks for raising the issue. We don't support parametrizing storage buckets using params yet. Params only work on configuration options like timeouts and memory for now. Sorry for the confusion! |
Thanks for the update. So do you have any suggestion on how to approach this issue when I am managing several environments with different bucket names using the same codebase? |
Came across the same problem. |
Hi |
Hi, Could you elaborate a little more on how you use that environment variable to parameterize bucket names? Maybe post/link some sample code? Thanks! |
@taeold any update on this feature? |
I am also looking for this feature. It seems very important for managing buckets in multiple environment. |
This is a bug IMO. We cannot use firebase function params as the documentation instructs us to if these basic top-level methods don't work with |
Related issues
[REQUIRED] Version info
node: v16.19.1
firebase-functions: 4.4.0
firebase-tools: 12.3.0
firebase-admin: 11.9.0
[REQUIRED] Test case
create an .env file with these contents:
DEFAULT_STORAGEBUCKET=img.mydomain.com
Then create an index.js file with this function definition:
[REQUIRED] Steps to reproduce
run "firebase emulators:start" or "firebase deploy"
[REQUIRED] Expected behavior
Expected behavior is Storage triggered cloud function for the bucket named "img.mydomain.com"
[REQUIRED] Actual behavior
Actual behavior is I am getting this error message:
functions: Failed to load function definition from source: FirebaseError: Failed to load function definition from source: Failed to generate manifest from function source: Error: Invalid bucket name params.DEFAULT_STORAGEBUCKET
Were you able to successfully deploy your functions?
No I was unable to deploy
The text was updated successfully, but these errors were encountered: