Counting all items of a DynamoDB table using aws cli

This following command will return the total number of records of a DynamoDB table:

aws dynamodb scan --table-name <TABLE_NAME> --select "COUNT"

Comments