Terraform Custom Provider For MongoDB OPS Manager
-
Danilo Pala
- 30 Sep, 2025
- 01 Min read

I'm very proud to announce one of the first Terraform Custom Provider For MongoDB OPS Manager.
Developed in golang, the plugin was designed to be stable and flexible.
Stable, because it was created over the Terraform Provider Scaffolding Framework, and uses the MongoDB's official package for Ops Manager in golang that provides a client for using the MongoDB Ops Manager and Cloud Manager API.
Flexible, because it was designed to parse templates of json files and load the results into their respective structs, with this approach different standards can be respected without changing the source code.
Until now, I've implemented data sources and resources for projects and replica sets. It's possible to create, change, import, and destroy resources.
For those that are not familiar with terraform, usually each cloud provider releases its own plugin, allowing to deploy resources in their infrastructures, with the benefits of IaC. On the other hand, this custom provider that I have developed allow us to deploy resources into a MongoDB OPS Manager, that can be onprem or in the cloud (IaaS).
Let me give an example, with a just few input parameters a Replica Set can be deployed in seconds.
There are a lot of functionalities that I'm going to share in the next articles. Stay tuned.
By Danilo Pala, 01/10/2025