Clone Table Schema
A 4-step recipe with Amazon Keyspaces. We can help you get access.
Recipe · 4 steps
Clone Table Schema
with Amazon Keyspaces
Clone a source table's schema into a new table in a target keyspace.
- Read the source table to capture its schema definition.
- Confirm the target keyspace exists before creating the cloned table in it.
- Create the new table in the target keyspace using the schema captured from the source table.
- Poll the cloned table until the service reports its status as ACTIVE. While the status is CREATING the step loops back on itself.
What you'll need to have ready
- sourceKeyspaceName: The keyspace of the table being cloned.
- sourceTableName: The table whose schema is being cloned.
- targetKeyspaceName: The keyspace the cloned table will be created in.
- targetTableName: The name of the new cloned table.
For your developer
Arazzo workflow amazon-keyspaces:clone-table, 4 operations: GetTable → GetKeyspace → CreateTable → GetTable. Specs on APIs.io.