Azure CosmosDB (DocumentDB) Cassandra Table
This page shows how to write Terraform and Azure Resource Manager for CosmosDB (DocumentDB) Cassandra Table and write them securely.
azurerm_cosmosdb_cassandra_table (Terraform)
The Cassandra Table in CosmosDB (DocumentDB) can be configured in Terraform with the resource name azurerm_cosmosdb_cassandra_table. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_cosmosdb_cassandra_table" "serverless" {
name = "testtable"
cassandra_keyspace_id = azurerm_cosmosdb_cassandra_keyspace.serverless.id
schema {
column {
Parameters
-
cassandra_keyspace_idrequired - string -
default_ttloptional computed - number -
idoptional computed - string -
namerequired - string -
throughputoptional computed - number -
autoscale_settingslist block-
max_throughputoptional computed - number
-
-
schemalist block-
cluster_keylist block -
columnlist block -
partition_keylist block-
namerequired - string
-
-
-
timeoutssingle block
Explanation in Terraform Registry
Manages a Cassandra Table within a Cosmos DB Cassandra Keyspace.
Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables (Azure Resource Manager)
The databaseAccounts/cassandraKeyspaces/tables in Microsoft.DocumentDB can be configured in Azure Resource Manager with the resource name Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringlocationoptional - stringThe location of the resource group to which the resource belongs.
namerequired - stringCosmos DB table name.
propertiesrequiredoptionsoptionalautoscaleSettingsoptionalmaxThroughputoptional - integerRepresents maximum throughput, the resource can scale up to.
throughputoptional - integerRequest Units per second. For example, "throughput": 10000.
resourcerequiredanalyticalStorageTtloptional - integerAnalytical TTL.
defaultTtloptional - integerTime to live of the Cosmos DB Cassandra table
idrequired - stringName of the Cosmos DB Cassandra table
schemaoptionalclusterKeysoptional arraynameoptional - stringName of the Cosmos DB Cassandra table cluster key
orderByoptional - stringOrder of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
columnsoptional arraynameoptional - stringName of the Cosmos DB Cassandra table column
typeoptional - stringType of the Cosmos DB Cassandra table column
partitionKeysoptional arraynameoptional - stringName of the Cosmos DB Cassandra table partition key
tagsoptional - stringTags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
typerequired - string
Frequently asked questions
What is Azure CosmosDB (DocumentDB) Cassandra Table?
Azure CosmosDB (DocumentDB) Cassandra Table is a resource for CosmosDB (DocumentDB) of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure CosmosDB (DocumentDB) Cassandra Table?
For Terraform, the gilyas/infracost source code example is useful. See the Terraform Example section for further details.