Created
August 19, 2020 17:48
-
-
Save JeremyMcCormick/df946a89ed0237ffc217717ee4f6bd00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
# For a Boto3 client. | |
ddb = boto3.client('dynamodb', endpoint_url='http://localhost:8000') | |
response = ddb.list_tables() | |
print(response) | |
# For a Boto3 service resource | |
ddb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000') | |
print(list(ddb.tables.all())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment