capabilities.work

Provision Table

A 4-step recipe with Amazon Keyspaces. We can help you get access.

Recipe · 4 steps

Provision Table

Create a keyspace and table, then wait for the table to become ACTIVE.

  1. Create the keyspace that will hold the new table.
  2. Add the table to the newly created keyspace using the supplied schema definition.
  3. Poll the table until the service reports its status as ACTIVE. While the status is still CREATING the step loops back on itself; once ACTIVE the flow proceeds to read the final table state.
  4. Read the final table state once it is ACTIVE to capture the ARN and creation timestamp.
What you'll need to have ready
  • keyspaceName: The name of the keyspace to create (e.g. my_keyspace).
  • tableName: The name of the table to create in the keyspace.
  • schemaDefinition: The Cassandra schema definition for the table, with allColumns and partitionKeys as defined by the Amazon Keyspaces CreateTable request.
For your developer

Arazzo workflow amazon-keyspaces:provision-table, 4 operations: CreateKeyspace → CreateTable → GetTable → GetTable. Specs on APIs.io.