Resource: aws_keyspaces_table

Provides a Keyspaces Table.

More information about Keyspaces tables can be found in the Keyspaces Developer Guide.

Example Usage

resource "aws_keyspaces_table" "example" {
  keyspace_name = aws_keyspaces_keyspace.example.name
  table_name    = "my_table"

  schema_definition {
    column {
      name = "Message"
      type = "ASCII"
    }

    partition_key {
      name = "Message"
    }
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

The capacity_specification object takes the following arguments:

The client_side_timestamps object takes the following arguments:

The comment object takes the following arguments:

The encryption_specification object takes the following arguments:

The point_in_time_recovery object takes the following arguments:

The schema_definition object takes the following arguments:

The column object takes the following arguments:

The partition_key object takes the following arguments:

The clustering_key object takes the following arguments:

The static_column object takes the following arguments:

The ttl object takes the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import a table using the keyspace_name and table_name separated by /. For example:

import {
  to = aws_keyspaces_table.example
  id = "my_keyspace/my_table"
}

Using terraform import, import a table using the keyspace_name and table_name separated by /. For example:

% terraform import aws_keyspaces_table.example my_keyspace/my_table