-
Notifications
You must be signed in to change notification settings - Fork 9.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
"missing provider" when attempting to override default #27409
Comments
Interesting! This definitely should not work; you cannot override a module's provider's namespace. That's a very deliberate design choice. We should catch that situation and return an error that the configuration is invalid. |
Updating with an example that probably should work. It seems passing in providers that don't use the default name is not working. Again it continues to fail even with a proxy provider block. The
|
Ah, found where the inconsistency lies. The |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
If a user attempts to override a default provider in a module,
init
will still find and store the default provider, butplan
andapply
will indicate that the provider cannot be found.Config
Output
Adding a "proxy provider block" to the module config does not change the error condition.
Expected Result
The specific error is not useful because the provider does appear to be found. We can either allow this type of override, or catch the invalid configuration and indicate what needs to be changed.
The text was updated successfully, but these errors were encountered: