01 Run list-tables command (OSX/Linux/UNIX) with custom query filters to list the name of each Amazon DynamoDB table created in the selected AWS cloud region:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
aws dynamodb list-tables
--region us-east-1
--output table
--query 'TableNames'
02 The command output should return a table with the requested table name(s):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
--------------------------
| ListTables |
+------------------------+
| cc-product-reviews |
| cc-product-inventory |
+------------------------+
03 Run describe-table command (OSX/Linux/UNIX) using the name of the Amazon DynamoDB table that you want to examine as the identifier parameter and custom query filters to return the table class used by the selected DynamoDB table:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
aws dynamodb describe-table
--region us-east-1
--table-name cc-product-reviews
--query 'Table.TableClassSummary.TableClass'
04 The command output should return the requested configuration information:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
"STANDARD"
If the
describe-table command output returns
"STANDARD", as shown in the output example above, the selected Amazon DynamoDB table is usind the DynamoDB Standard class (general-purpose table class) instead of the cost-optimized DynamoDB Standard-IA class (i.e. STANDARD_INFREQUENT_ACCESS).
05 Repeat steps no. 3 and 4 for each DynamoDB table available in the selected AWS region.
06 Change the AWS cloud region by updating the --regioncommand parameter value and repeat the Audit process for other regions.