Skip to content

DynamoDB ​

Parity grade: A · SDK aws-sdk-go-v2/service/dynamodb@v1.70.3 · last audited 2026-10-10 (e1e3f187f) · protocol json-1.0 (DynamoDB_20120810 targets)

Category: Database · View PARITY.md on GitHub · All Services

In-memory DynamoDB with expressions, PartiQL, secondary indexes, transactions, streams, TTL, backups, global tables, import and export.

Quick start ​

bash
export AWS_ENDPOINT_URL=http://localhost:8000

aws dynamodb create-table --table-name Users \
    --attribute-definitions AttributeName=UserId,AttributeType=S \
    --key-schema AttributeName=UserId,KeyType=HASH \
    --billing-mode PAY_PER_REQUEST

aws dynamodb put-item --table-name Users \
    --item '{"UserId":{"S":"u123"},"Name":{"S":"Alice"},"Age":{"N":"30"}}'

aws dynamodb update-item --table-name Users \
    --key '{"UserId":{"S":"u123"}}' \
    --update-expression "SET Age = :a" \
    --expression-attribute-values '{":a":{"N":"31"}}'

aws dynamodb scan --table-name Users \
    --filter-expression "Age > :min" \
    --expression-attribute-values '{":min":{"N":"25"}}'

aws dynamodb transact-write-items --transact-items '[
  {"Put":{"TableName":"Users","Item":{"UserId":{"S":"u456"}}}},
  {"Delete":{"TableName":"Users","Key":{"UserId":{"S":"u789"}}}}]'

Supported operations ​

AreaOperations
TablesCreateTable, DeleteTable, DescribeTable, ListTables, UpdateTable, DescribeEndpoints, DescribeLimits
ItemsPutItem, GetItem, UpdateItem, DeleteItem, Query, Scan, BatchGetItem, BatchWriteItem, TransactGetItems, TransactWriteItems
PartiQLExecuteStatement, BatchExecuteStatement, ExecuteTransaction
TTLDescribeTimeToLive, UpdateTimeToLive
BackupsCreateBackup, DeleteBackup, DescribeBackup, ListBackups, RestoreTableFromBackup, RestoreTableToPointInTime, DescribeContinuousBackups, UpdateContinuousBackups
Import and exportExportTableToPointInTime, DescribeExport, ListExports, ImportTable, DescribeImport, ListImports
Global tablesCreateGlobalTable, DescribeGlobalTable, ListGlobalTables, UpdateGlobalTable, DescribeGlobalTableSettings, UpdateGlobalTableSettings
Auto scalingDescribeTableReplicaAutoScaling, UpdateTableReplicaAutoScaling
Contributor InsightsDescribeContributorInsights, ListContributorInsights, UpdateContributorInsights
Kinesis streamingEnableKinesisStreamingDestination, DisableKinesisStreamingDestination, DescribeKinesisStreamingDestination, UpdateKinesisStreamingDestination
Resource policiesPutResourcePolicy, GetResourcePolicy, DeleteResourcePolicy
TagsTagResource, UntagResource, ListTagsOfResource
OtherSearchVectors

Streams (DescribeStream, GetShardIterator, GetRecords, ListStreams) are served as the separate DynamoDB Streams service on the same port.

Configuration ​

Flag / envDefaultPurpose
DYNAMODB_REGIONus-east-1Default region
DYNAMODB_JANITOR_INTERVAL500msJanitor tick
DYNAMODB_TTL_SWEEP_BATCH_SIZE1000Items checked per lock acquisition during a TTL sweep
DYNAMODB_CREATE_DELAY0sSimulated CREATING to ACTIVE delay; 0 makes tables active immediately
DYNAMODB_ENFORCE_THROUGHPUTfalseEnforce provisioned throughput with a per-table token bucket
GOPHERSTACK_ENFORCE_SERVICE_QUOTASfalseReject table creates beyond the Service Quotas limit

Differences from AWS ​

  • TTL deletes expired items in a background sweep (every 5 s), not at the exact expiry time.
  • Export and import read and write through the S3 emulator.
  • Not modelled: INACCESSIBLE_ENCRYPTION_CREDENTIALS replica state (no live KMS key check), BackupExpiryDateTime (only for system backups, which are never created), and Contributor Insights FailureException (no insights processing to fail).

Parity & Coverage ​

MetricValue
Feature families15 (15 ok)
Known gapsnone
Structural gaps (can't be emulated)3
Deferred items2
Resource leaksclean

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • ReplicaDescription.ReplicaInaccessibleDateTime / INACCESSIBLE_ENCRYPTION_CREDENTIALS (2026-10-07): set when a replica's customer-managed KMS key becomes unusable; the replica KMSMasterKeyId is stored and echoed but dynamodb holds no live KMS key-state wiring.
  • BackupExpiryDateTime applies to SYSTEM backups only; the emulator creates none.
  • DescribeContributorInsights FailureException: there is no insights processing to fail.

Deferred Items ​

  • expr/ lexer/parser/evaluator subpackage (has own aws_spec_test.go/evaluator_test.go) — not line-by-line re-audited this sweep; genuinely large surface, out of scope for this streams/transactions-focused follow-up pass. No known bugs, just not freshly field-diffed against the SDK this cycle.
  • PartiQL execution (partiql.go, ~37KB) — not re-audited this sweep, same reason as above.

Audited Feature Families ​

Feature FamilyStatus
item_crudok
query_scanok
batchok
transactionsok
streamsok
janitor_ttlok
datalayerok
admin_listsok
autoscalingfixed
global_table_settings_autoscalingfixed
kinesis_streaming_disable_echofixed
pagination_sweepfixed
global_table_settings_rcu_writethroughfixed
expr_partiql_behavioral_auditfixed
reserved_words_batch_mix_exists_followupfixed

Released under the MIT License.