You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# azurerm_cosmosdb_sql_container.termsets_termsettemplates will be updated in-place
~ resource "azurerm_cosmosdb_sql_container" "termsets_termsettemplates" {
account_name = "########"
database_name = "termsets"
id = "/subscriptions/##########/resourceGroups/#####/providers/Microsoft.DocumentDB/databaseAccounts/#####/apis/sql/databases/termsets/containers/termsettemplates"
name = "termsettemplates"
partition_key_path = "/id"
resource_group_name = "#######"
+ unique_key {
+ paths = [
+ "/Name",
+ "/Version",
]
}
- unique_key {
- paths = [
- "/Name",
] -> null
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_cosmosdb_sql_container.termsets_termsettemplates: Modifying... [id=/subscriptions/####/resourceGroups/####/providers/Microsoft.DocumentDB/databaseAccounts/####/apis/sql/databases/termsets/containers/termsettemplates]
Error: doesn't support update
on cosmosdb.tf line 175, in resource "azurerm_cosmosdb_sql_container" "termsets_termsettemplates":
175: resource "azurerm_cosmosdb_sql_container" "termsets_termsettemplates" {
Expected Behavior
I would expect terraform to suggest this would be a destroy and recreate rather than an update
Actual Behavior
Says it will be and update then fails as this is not possible with this resource
Steps to Reproduce
Create a container then try and update the unique key
The text was updated successfully, but these errors were encountered:
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!
ghost
locked and limited conversation to collaborators
Sep 27, 2019
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.6
provider.azurerm v1.33.0
Affected Resource(s)
azurerm_cosmosdb_sql_container
Terraform Configuration Files
Debug Output
Terraform will perform the following actions:
Expected Behavior
I would expect terraform to suggest this would be a destroy and recreate rather than an update
Actual Behavior
Says it will be and update then fails as this is not possible with this resource
Steps to Reproduce
Create a container then try and update the unique key
The text was updated successfully, but these errors were encountered: