AWS DynamoDB snippets
How to get the list of DynamoDB table with Python boto3
Please note that this snippet is part of the DynamoDB-Simpsons-episodes-full-example repository on GitHub.
Let's say you want to get a list of the tables create into am specific AWS DynamoDB instance.
First of all, you have to create a Resource (follow these steps) and then you can use the following code to assign a value to the variables used below.
tables = list(dynamodbRes.tables.all()) print(tables)