Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate size of items in my Amazon DynamoDB table

I'd like to figure out the size of items in my Amazon DynamoDB table or the full size so i can accurately forecast costs in a project I'm working on.

I understand that for every 4kb of data read it will use 1RCU. So now id like to find out the size for every entry or the total table.

like image 358
zuba Avatar asked May 23 '18 09:05

zuba


1 Answers

The AWS Command "describe-table" will give you metadata for the given table.

aws dynamodb describe-table --table-name [table name]

The output will have a parameter

"TableSizeBytes": 0,

Which will give you "The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value."

Per documentation

like image 119
KiteCoder Avatar answered Sep 28 '22 00:09

KiteCoder