capabilities.work

Provision Table and Seed First Item

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

Recipe · 4 steps

Provision Table and Seed First Item

Create a table, wait for ACTIVE, seed an item, and read it back.

  1. Create the table with the supplied schema and throughput.
  2. Poll DescribeTable until the table reports ACTIVE, looping back while it is still being created.
  3. Write the seed item into the freshly provisioned table.
  4. Read the seed item back by its primary key to confirm it was written.
What you'll need to have ready
  • tableName: The name of the table to create and seed.
  • keySchema: The primary key schema for the table.
  • attributeDefinitions: The attribute definitions backing the key schema.
  • provisionedThroughput: Read and write capacity units for PROVISIONED billing mode.
  • item: The seed item as a map of attribute name to AttributeValue.
  • key: The primary key of the seed item, used for the read-back.
For your developer

Arazzo workflow amazon-dynamodb:provision-table-and-seed, 4 operations: CreateTable → DescribeTable → PutItem → GetItem. Specs on APIs.io.