Configure Key-Value Stores

Configure DynamoDB tables, keys, access, metrics, and retention.

The Key Value Store component creates an Amazon DynamoDB table for low-latency key-based access.

Create a Table

  1. Open an infrastructure configuration and select Add component > Key Value Store.
  2. Enter the component name.
  3. Enter the partition-key name and select String, Number, or Binary.
  4. Add a sort key only when the data model requires multiple ordered items under one partition key.
  5. Select metrics and alarms.
  6. Grant read or write access to the services that use the table.
  7. Choose Keep or Delete for each environment and save.

Choose Keys Carefully

The partition key determines how DynamoDB distributes and retrieves data. Choose a value with enough variation to avoid concentrating traffic in a small number of partitions. A sort key supports range queries and several related records under the same partition key.

Key definitions are difficult to change after data exists. Validate access patterns before the first production deployment.

Connect Services

Grant services only the access they need, then select the table-derived name in their environment variables. Application code should use the deployed AWS region and its task or function role rather than static AWS keys.