default_ttl_seconds = -1 doesn't create _ts
index with options expireAfterSeconds: -1
#16306
Closed
1 task done
Labels
Is there an existing issue for this?
Community Note
Terraform Version
0.14.8
AzureRM Provider Version
2.77.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_mongo_collection
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
There should be
_ts
index created, together with optionsexpireAfterSeconds: -1
. This is important, because this is the way how Cosmos for Mongo API supportsper document based ttl
feature. Basically, by default all documents will never expire, but only the specific documents giventtl
with positive value will expire and be removed.Index
_ts
will like as follow:Actual Behaviour
However, Terraform is ignore this, even though explicitly configured with
default_ttl_seconds = -1
, there is no_ts
index is created.Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: