Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created December 26, 2021 17:43
Show Gist options
  • Save agusrichard/1dca81542de4fe327f7b173884a8b843 to your computer and use it in GitHub Desktop.
Save agusrichard/1dca81542de4fe327f7b173884a8b843 to your computer and use it in GitHub Desktop.
import boto3
from boto3.resources.base import ServiceResource
def initialize_db() -> ServiceResource:
ddb = boto3.resource('dynamodb',
endpoint_url='http://localhost:8000',
region_name='example',
aws_access_key_id='example',
aws_secret_access_key='example')
return ddb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment