renamem orders
This commit is contained in:
15
orders-events/app/boto3clients.py
Normal file
15
orders-events/app/boto3clients.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
|
||||
import boto3
|
||||
|
||||
|
||||
def get_dynamodb_client():
|
||||
if os.getenv('AWS_LAMBDA_FUNCTION_NAME'):
|
||||
return boto3.client('dynamodb')
|
||||
|
||||
return boto3.client('dynamodb', endpoint_url='http://localhost:8000')
|
||||
|
||||
|
||||
dynamodb_client = get_dynamodb_client()
|
||||
s3_client = boto3.client('s3')
|
||||
sesv2_client = boto3.client('sesv2')
|
||||
Reference in New Issue
Block a user