-
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
Adding an additional geo_location
to an azurerm_cosmosdb_account
should not require replacement
#3532
Comments
So I have a similar scenario where I haven't added a new geo_location. We already had 2. Our plan output looks like more this:
Now the first geoLoc stanza to us looks identical so I don't understand why it needs to -/+ at all The second one didn't have a "prefix" in it previously, but I believe in adding a prefix which matches - it should be the same right? Yet it is still trying to -/+. We have modules and multiple environments, so we are struggling to have a prefix for the first one but not for the second without at least destroying the CosmosDB in at least ONE of our environments. Ultimately my question is - Would any of the referenced PR's resolve this? If not - and if this is indeed caused by the prefix addition to the second geo_location stanza - is there any way to set the prefix on the second geo_location stanza without causing a -/+ ? |
I have a similar issue. In my case I tried using the dynamic functionality to allow a variable number of geo_location blocks e.g. per environment, but this appears to require a full replace of the CosmosDB account on each apply. So not usable currently. |
Having the same issue here. Changing geo settings replaces the entire db |
Has anyone looked into this? This becomes a highly destructive action. |
I am also having this issue today. I currently only have a single geo_location with priority 0. I am now trying to add a second region for geo_location, without updating the primary location which is already defined and it is wanting to completely destroy my primary location to recreate it, whilst adding the secondary location. |
This has been released in version 2.14.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 = "~> 2.14.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
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Expected Behavior
After deploying the code above, uncommenting the second
geo_location
and rerunningapply
should have updated the existing CosmosDB database.Actual Behavior
Instead, it requires a replacement.
Steps to Reproduce
terraform apply
geo_location
terraform apply
againNotes
The text was updated successfully, but these errors were encountered: