Open hilaryRope opened 5 years ago
I was confused with that once as well. DB creation is implicit in atlas, just create a role on, say, database_name "myaweesomedb". Collections are implicit as well, just execute a write to a new collection, it will be created automatically if not existing.
Sent with GitHawk
thank you @Knappek, this is much appreciated. What confuses me is that if I go inside the cluster it gives me the option to create a database and from the UI there is no option to delete your existing database (which of course i cannot even see). Does it mean that it is deleted when you remove the cluster and project? I would like to stop the billing too and I am under the impression that as long as i have an existing db that will keep going?! Thanks
Do you also mean that I should create a new role altogether other than the one I have for admin?
If you delete the cluster, you delete all databases and data inside that cluster (I think you even delete all the backups of not using cloud provider snapshots). Yes absolutely, admin database shouldn't be used, always create specific roles that serve a single purpose following the principle of least privileges.
Sent with GitHawk
@ilacorda I think you can close this ticket?
Hi, apologies if i am a bit of a newbie when it comes to Mongodb atlas and the terraform provider, but I am successfully creating group, user and cluster, but when I inspect my cluster I see no database or collection created, where am I going wrong? Here is some details from my main.tf:
group
cluster
I am not sure I follow, but I was under the impression that the db should also be created automatically by terraform inside the cluster?
Thank you so much for your help