-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Set throughput at CosmosDB SQL database level #3623
Comments
The options are set using a map of strings https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/azurerm/resource_arm_cosmosdb_sql_database.go (see line 75) |
I can only encourage this feature: we recently migrated from a MongoDB in Heroku to a CosmosDB in Azure, and now realise that each collection within the terraformed CosmosDB is a separate cost item. Collections in MongoDB are not the same in CosmosDB, the former uses them for storing docs of a same type, while the latter is able to store docs of different types. |
This comment has been minimized.
This comment has been minimized.
Actually, my issue looks to be related to #3586 |
@christonog, looks like this is a duplicate of #3586 so i am going to close this. If you think this is an error please feel free to reopen it! |
Actually upon a closer look that is mongo, and this is SQL, reopening. apologies! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For those getting confused by @jpovey's comment – My impression is: it's being pointed out that this looks possible using the Go SDK (though I'm not sure how you pass in that map of strings), which the Azure Terraform provider depends upon. However, it doesn't appear that this is supported by the provider right now, which this issue is requesting. cc @tminhein |
Until this is not implemented, im using via azure template. |
This comment has been minimized.
This comment has been minimized.
Is just like i mentioned above, im using the azurerm template provider. |
You can work around pretty much anything using a dreaded ARM template but this is really not ideal and negates the main advantages of terraform. Any update on whether the throughout configuration will be included in future releases would be appreciated. |
Very sad throughput cannot be controlled when deploying terraform. This is a critical issue as you cannot change the throughput configuration of a SQL Database once it has been deployed. It requires a drop / create. |
This has been released in version 1.40.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.40.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Community Note
Description
CosmosDB suports setting throughput at a database level and shared across collections, this is not currently possible when provisioning using terraform.
This affects the cost and performance so is needed for this resource
New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: