The pod is stalled, logs are silent, and customer queries to DynamoDB are timing out. You have seconds to decide what happens next.
Kubectl DynamoDB query runbooks give you that power. They are the blueprint for running precise operational commands across Kubernetes clusters while diagnosing, tracing, and fixing DynamoDB activity. Without them, you risk fumbling through manual steps in the middle of an incident. With them, you cut straight to verified procedures and faster recovery.
A good runbook starts with kubectl commands that target the right namespace and pod. Identify your workload:
kubectl get pods -n prod
kubectl exec -n prod api-pod-1 -- sh
Inside the container, use AWS CLI to run DynamoDB queries directly:
aws dynamodb query \
--table-name Orders \
--key-condition-expression "CustomerId = :id"\
--expression-attribute-values '{":id":{"S":"12345"}}'
Runbooks should detail every step, including authentication via IAM roles or exported AWS credentials, metrics verification with kubectl logs and kubectl top, and rollback procedures when changes fail.