Closed holms closed 5 years ago
Ok sorry it's solved it should be like this:
resource "mongodbatlas_database_user" "whatever" {
username = "whatever"
password = "whatever"
database = "admin"
group = "${mongodbatlas_project.mydb.id}"
roles {
name = "readWrite"
database = "mydb"
}
}
Not sure why I got this error
Output:
Is it because database doesn't exist? I'm actually not sure, because on atlas dashboard I can create a user with
readWrite@mydb
even without creating database first.