-
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
azurerm_cosmosdb_account: ip_range_filter doesnt work any longer #27159
Comments
It appears we missed this one in our upgrade guide and subsequently the resource documentation when 4.0 went out, apologies for that and thank you for spotting this @svaraksin-gd! I've opened #27165 to add this to the upgrade guide, as well as updated the property in the cosmosdb resource documentation. When upgrading to 4.0 you will need to convert the value you were supplying for
|
Hello @stephybun I'm afaraid youa re missed my part related to issue, when I specify this variable as list or set.
fails with the following error:
Am I missing something? |
@stephybun More details.
All of them return
|
@svaraksin-gd Same issue here. |
Hey @svaraksin-gd, thanks for the additional information and thanks @izire-io for posting the solution! Since the underlying type of the Apologies for omitting this in my initial response! |
@izire-io @stephybun Thank you both. It is working now. |
Cannot agree for closing this issue as removing terraform state and reimporting cosmos db resource to terraform state is not a real fix. It is rather a workaround may be doable in development envrironments. But in fully automated zero downtime deployment pipline scenarions with mutiple production environments having cosmos DBs, doing manual removal of terraform state and reimporting resource to terraform state is not a feasible task. So I think this bug should be fixed in terraform provider v4.0.1 (or at least in next version of v4) to allow smooth updates from v.3.116.0 so we can do an update to azurerm 4 without having to do manual state imports. Kindly consider a fix for next release to allow smooth updates from v3 to v4 with terraform config chagnes only and prevent demand for state removal and import. refer my issue even without ip range filter here #27242 |
Agree, this should not be closed |
+1 to re-opening this ticket. |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.9.3
AzureRM Provider Version
4.0.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Es per documentation (wasn't changed neither before 4.0.0 nor after):
[ip_range_filter](https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/cosmosdb_account#ip_range_filter) - (Optional) CosmosDB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
Actual Behaviour
before 4.0.0:
it works as described in
Terraform Configuration Files
.after 4.0.0:
it doesn't work, even if I set thisv ariable up to set type or even to list.
For
string
it started to fail on type error.For
set
orlist
it started to fail onerror: missing expected [
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: