Created
December 26, 2021 17:43
-
-
Save agusrichard/1dca81542de4fe327f7b173884a8b843 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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