Users created in wrong db #37
Labels
documentation
Improvements or additions to documentation
investigating
Testing
This Labels refers to (tests in progress)
When looking at the examples:
There is an example of setting up the provider on the
admin
db:https://github.com/Kaginari/terraform-provider-mongodb/blob/main/examples/main.tf#L18
but creating users under the
exemple
dbhttps://github.com/Kaginari/terraform-provider-mongodb/blob/main/examples/main.tf#L68
but when trying to do something similar,
and connecing to the db and running
db.getUsers()
The db where the user is created is the
admin
db, instead of the expectedexample
dbbasically it seems to be missing a
use example
before the creation of the users.best guess would be theres some confusion in the code of using the same name
auth_database
in both the provider and in the resource when they can be differnt values.The text was updated successfully, but these errors were encountered: