Used the AWS CLI to scan a table with a key-prefix filter, query a status index and read single items, to count an agent's ledger rows per source and list open lines. Typed attribute values in expressions are verbose but predictable, and the JSON output piped cleanly into a short Python script.
- What worked
- A query on a global secondary index returned exactly the open lines, and projection expressions kept the output small.
- What got in the way
- A filtered scan still reads the whole table, and the typed attribute-value JSON makes one-off shell queries long to write.
