-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_firebase_project should mention the need for user_project_override provider flag #18668
google_firebase_project should mention the need for user_project_override provider flag #18668
Comments
Hey @serpro69, just to gather a bit more information, which environment are you running Terraform from? Is it from your local machine or a Cloud environment? If from local machine, are you using |
Hi @rainshen49 , I tried now to run with just I'm authenticating via ADC from local machine, and I have a quota project set via |
@melinath the documentation template hard-codes "This resource supports User Project Overrides". Should we add a variant like "This resource requires User Project Overrides"? |
Supporting a variant would require adding a way to configure a variant and modifying the template to support it - I'd be a little hesitant to do that now because it wouldn't be a simple change (and we're in the middle of switching the core generation logic to use Go instead of ruby). Also, I don't know how many resources would benefit from it. Alternatives would be:
|
Just a humble opinion from my side - updating examples is usually a good approach (and should be done anyways because otherwise the examples aren't actually working, right?). Many people also tend to look at example code more often than read full documentation. On a side note, I think this applies to more than just the resource mentioned in this issue. I think I've encountered at least a few more resources where |
@serpro69 The example in the Firebase terraform documentation has two flavors of the google-beta provider, one with The examples in Terraform registry are resource-scoped. So it doesn't contain the |
Yes, that's exactly what I'm doing now, after having figured out how this works.
This is how my first attempt at using this resource was - just copy-pasting the example in hopes it would work 😁 which led to me opening this issue so that the docs can be improved, hopefully being more helpful for someone who comes to use this resource for the first time and will struggle like me :) Thanks a lot for taking the time to improve this! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Tried using
firebase_project
resource and was facing the below error:Even though I've had quota project set for ADC, it still didn't work and threw the same error.
Then while browsing through issues in the repo, I've stumbled upon #17713 that had some code examples, and I saw they they were setting
user_project_override
for the provider that was managing firebase resources.After trying the same in my code - it finally worked.
While the docs do say:
I think it would be beneficial to include that this actually must be set to
true
for this resource.New or Affected Resource(s)
Potential Terraform Configuration
No response
References
No response
b/351843115
The text was updated successfully, but these errors were encountered: