I am trying to add autoscale settings to cosmos db but its not allowing the shard_key value as null. because right now we dont have shard_key but still want to utlitze the auto scale feature. I can see in azure portal that is allowed when I import the resources created without shard_key in the portal the value is showing null, but while creation I am not able to do it.
resource "azurerm_cosmosdb_mongo_collection" "collections" {
name = "dbCollName"
resource_group_name = azurerm_cosmosdb_account.cosmosdb.resource_group_name
account_name = local.account_name
database_name = "dbName"
shard_key = null
autoscale_settings = {
max_throughput = 4000
}
}

