Seems like there's some questions here surrounding what this might look like from the Mongo team. As an example you could look at this Postgres provider (not a recommendation as I've never used it):
I know Mongo isn't a relational database but there are some schema-related tasks (creation of collections, addition of indexes, etc.) that would be great to manage via Terraform. It becomes even more important to add this for Mongo as there are many tools for schema versioning/migration for relational databases but an absolute absence in the Mongo space. Adding this capability would bring the familiar Infrastructure as Code (IaC) and migration tools from the relational world to the flexible world of Mongo.
Seems like there's some questions here surrounding what this might look like from the Mongo team. As an example you could look at this Postgres provider (not a recommendation as I've never used it):
- https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/postgresql_schema
- https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/postgresql_database
I know Mongo isn't a relational database but there are some schema-related tasks (creation of collections, addition of indexes, etc.) that would be great to manage via Terraform. It becomes even more important to add this for Mongo as there are many tools for schema versioning/migration for relational databases but an absolute absence in the Mongo space. Adding this capability would bring the familiar Infrastructure as Code (IaC) and migration tools from the relational world to the flexible world of Mongo.