Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform updates cosmos db account everytime
)
module.cosmosdbaccount.azurerm_cosmosdb_account.db will be updated in-place
Hi Team,
Everytime our terraform code updates the cosmos DB by default which takes 10 minutes to do the task
please help us in finding any appropriate way to do so
Solution required for:
1. Avoid Cosmos DB update everytime on terraform
2. Is their a way to make the cosmos DB public with above terraform code to make it has both private and public access together
please help me getting right solution for this
Expected Behaviour
Hi Team,
Everytime our terraform code updates the cosmos DB by default which takes 10 minutes to do the task
please help us in finding any appropriate way to do so
Solution required for:
Avoid Cosmos DB update everytime on terraform
Is their a way to make the cosmos DB public with above terraform code to make it has both private and public access together
Is there an existing issue for this?
Community Note
Terraform updates cosmos db account everytime
)
module.cosmosdbaccount.azurerm_cosmosdb_account.db will be updated in-place
~ resource "azurerm_cosmosdb_account" "db" { id = "/subscriptions//resourceGroups//providers/Microsoft.DocumentDB/databaseAccounts/"
~ ip_range_filter = "" -> ""
name = ""
tags = {
"CreatedBy" = "devopsteam"
"Environment" = "preprod"
"ProjectCode" = "test"
}
(33 unchanged attributes hidden)
Plan: 0 to add, 1 to change, 0 to destroy.
Ip range filter gets updated everytime even their is no change
Even after keeping the depends on condition cosmosdb collection is failing to update due to internal server error
module.globalcollection[""].azurerm_cosmosdb_mongo_collection.collection: Still modifying... [id=, 10s elapsed]
module.globalcollection[""].azurerm_cosmosdb_mongo_collection.collection: Still modifying... [id=, 10s elapsed]
module.globalcollection[""].azurerm_cosmosdb_mongo_collection.collection: Still modifying... [id=, 10s elapsed]
And fails with error
Error: waiting on create/update future for Cosmos Mongo Collection "collection_name" (Account: "", Database: ""): Code="InternalServerError" Message="Internal error.\r\nActivityId: a0633ee8-97a2-497e-943b-f6d2e09042ae, Microsoft.Azure.Documents.Common/2.14.0"
│
│ with module.globalcollection["collection_name"].azurerm_cosmosdb_mongo_collection.collection,
│ on .terraform/modules/globalcollection/infrastructure/modules/cosmos-mongo-collection/main.tf line 1, in resource "azurerm_cosmosdb_mongo_collection" "collection":
│ 1: resource "azurerm_cosmosdb_mongo_collection" "collection" {
Terraform Version
latest
AzureRM Provider Version
3.110.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Hi Team,
Everytime our terraform code updates the cosmos DB by default which takes 10 minutes to do the task
please help us in finding any appropriate way to do so
Solution required for:
please help me getting right solution for this
Actual Behaviour
Please give valuable suggestions for the same
Steps to Reproduce
Please give valuable suggestions for the same
Important Factoids
Please give valuable suggestions for the same