0

We are in the process of creating a new Database using Mongo DB Atlas and we are checking the possibility of setting up the entire setup (Project, Cluster, Database, Collections, Users etc.) using Infrastructure as Code. This will enable us to setup a new environment easily using the scripts. We saw few options like Terraform Templates (https://docs.mongodb.com/mongodb-vscode/create-cluster-terraform/). But this will setup only the project, cluster and database users. We do not see a way in setting up databases or collections. Is there any documentation or guidance around how to spin up Mongo DB using IaC?

Silly John
  • 1,584
  • 2
  • 16
  • 34
  • Does this answer your question? [Terraform provider for Mongodb Atlas: where is my db?](https://stackoverflow.com/questions/58150866/terraform-provider-for-mongodb-atlas-where-is-my-db) – Kombajn zbożowy Mar 09 '22 at 12:01

1 Answers1

0

The following is the mongodb atlas terraform provider: https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/database_user this can be used to interact with the resources supported by MongoDB Atlas. There you can check all the available provider resources and data sources.