Open jcorioland opened 5 years ago
i would love to help on this one.
we should also look at the rest of the control plane, like creating databases, collections, setting throughput, setting up geo-replication, multi-master etc.
That will be definitely awesome to get all those features indeed. We need to check what is available in the Terraform ressource, and also in the Azure GO SDK. Maybe we will have to improve the TF resource first.
I see that there is a resource for a mongo db collection, but it seems there is no for document db collection indeed. The Azure Go SDK seems to define what's needed to work with collection here. I am not a CosmosDb expert, but might be interesting to explore this way and add support for collection if possible.
Maybe you can do it in two times:
What do you think?
Sure, i can start with a module for acct + db. And then, time permitting, look to extend the provider. ARM support for database and collection is very new. I think it was only announced recently at Build.
Publish a module to Terraform Registry that helps to deploy Azure CosmosDb account.
Related Terraform resource: