Skip to content
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

Support for computed_property in azurerm_cosmosdb_sql_container #28238

Open
1 task done
yigityuksel opened this issue Dec 10, 2024 · 0 comments
Open
1 task done

Support for computed_property in azurerm_cosmosdb_sql_container #28238

yigityuksel opened this issue Dec 10, 2024 · 0 comments

Comments

@yigityuksel
Copy link

yigityuksel commented Dec 10, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 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.

Description

The addition of computed_property would enable users to define computed properties directly within their Azure Cosmos DB SQL containers. This feature is particularly valuable for scenarios where computed fields are required for optimized queries, enhanced data retrieval, or to simplify application logic.

New or Affected Resource(s)/Data Source(s)

4.13.0

Potential Terraform Configuration

Add a new block or argument to the azurerm_cosmosdb_sql_container resource to support defining computed_property configurations. The configuration might look similar to:

resource "azurerm_cosmosdb_sql_container" "example" {
  name                = "example-container"
  cosmosdb_sql_database_id = azurerm_cosmosdb_sql_database.example.id
  partition_key_path  = "/partitionKey"

  computed_property [{
    name       = "cp_property_name"
    query      = "SELECT VALUE UPPER(c.field_name) FROM c"
  }]
}

References

Computed properties in Azure Cosmos DB for NoSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants