Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: extend CosmosDB Account to allow the kind of DB to be specified #290

Closed
StuartGreenhall opened this issue Aug 30, 2017 · 2 comments · Fixed by #299
Closed

Comments

@StuartGreenhall
Copy link

StuartGreenhall commented Aug 30, 2017

Hey,

It would be great it cosmosdb resource was extend to enable a user to specify which kind of database they would like to use within cosmos.

This looks to be possible via the REST API: https://docs.microsoft.com/en-us/rest/api/documentdbresourceprovider/DatabaseAccounts/List#definitions_databaseaccountslistresult_databaseaccount_properties

I looked into the code and think this would require a addition field in the schema call Kind that can be one of the following values:

  • GlobalDocumentDB
  • MongoDB
  • {Unknown Value for GraphDB}
  • {Unknown Value for KeyValue}

Perhaps the default would be GlobalDocumentDB as that's the current behaviour.

tombuildsstuff added a commit that referenced this issue Sep 1, 2017
Fixes #290

```
$ acctests azurerm TestAccAzureRMCosmosDBAccount_mongoDB
=== RUN   TestAccAzureRMCosmosDBAccount_mongoDB
--- PASS: TestAccAzureRMCosmosDBAccount_mongoDB (670.91s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm    670.928s
```
@tombuildsstuff
Copy link
Contributor

Hey @StuartGreenhall

Thanks for this request - I've just added support for setting this to MongoDB or GlobalDocumentDB (which is the default) in #299 - which should go out in the next version of the AzureRM provider :)

Thanks!

@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants