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_id
required - string -
default_ttl
optional computed - number -
id
optional computed - string -
name
required - string -
throughput
optional computed - number -
autoscale_settings
list block-
max_throughput
optional computed - number
-
-
schema
list block-
cluster_key
list block -
column
list block -
partition_key
list block-
name
required - string
-
-
-
timeouts
single 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
apiVersion
required - stringlocation
optional - stringThe location of the resource group to which the resource belongs.
name
required - stringCosmos DB table name.
properties
requiredoptions
optionalautoscaleSettings
optionalmaxThroughput
optional - integerRepresents maximum throughput, the resource can scale up to.
throughput
optional - integerRequest Units per second. For example, "throughput": 10000.
resource
requiredanalyticalStorageTtl
optional - integerAnalytical TTL.
defaultTtl
optional - integerTime to live of the Cosmos DB Cassandra table
id
required - stringName of the Cosmos DB Cassandra table
schema
optionalclusterKeys
optional arrayname
optional - stringName of the Cosmos DB Cassandra table cluster key
orderBy
optional - stringOrder of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"
columns
optional arrayname
optional - stringName of the Cosmos DB Cassandra table column
type
optional - stringType of the Cosmos DB Cassandra table column
partitionKeys
optional arrayname
optional - stringName of the Cosmos DB Cassandra table partition key
tags
optional - 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".
type
required - 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.