Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JeremyMcCormick/df946a89ed0237ffc217717ee4f6bd00 to your computer and use it in GitHub Desktop.
Save JeremyMcCormick/df946a89ed0237ffc217717ee4f6bd00 to your computer and use it in GitHub Desktop.
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