Azure / terraform

Source code for the Azure Marketplace Terraform development VM package.
MIT License
696 stars 792 forks source link

Module for Azure CosmosDb #17

Open jcorioland opened 5 years ago

jcorioland commented 5 years ago

Publish a module to Terraform Registry that helps to deploy Azure CosmosDb account.

Related Terraform resource:

ryancrawcour commented 5 years ago

i would love to help on this one.

ryancrawcour commented 5 years ago

we should also look at the rest of the control plane, like creating databases, collections, setting throughput, setting up geo-replication, multi-master etc.

jcorioland commented 5 years ago

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.

ryancrawcour commented 5 years ago

I see from the provider that they have a resource for Account and for Database but cannot see anything for Collection ........

Do we need to add this first?

jcorioland commented 5 years ago

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?

ryancrawcour commented 5 years ago

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.