`ValidationException: One or more parameter values were invalid: Missing the key orderId in the item`.
BeginnerTroubleshootingRDS, Aurora and DynamoDB
Answer
Likely causes → The PutItem request does not include the partition key (or sort key) attribute, or uses a different name or case (orderID vs orderId), or a different type (S vs N).
Diagnose →
aws dynamodb describe-table --table-name orders --query 'Table.[KeySchema,AttributeDefinitions]'
Fix → Send every key attribute with the exact name and type:
aws dynamodb put-item --table-name orders \
--item '{"orderId":{"S":"o-1001"},"createdAt":{"N":"1731139200"},"total":{"N":"42.5"}}'
Prevent → Use a typed data layer (for example, the DynamoDB Document Client or ElectroDB) with a schema, and add contract tests.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate