mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
don't use global s3 client
This commit is contained in:
@@ -13,6 +13,7 @@ from app import job_cache, job_cache_lock
|
||||
from app.clients import AWS_CLIENT_CONFIG
|
||||
|
||||
# from app.service.rest import get_service_by_id
|
||||
from app.utils import hilite
|
||||
from notifications_utils import aware_utcnow
|
||||
|
||||
FILE_LOCATION_STRUCTURE = "service-{}-notify/{}.csv"
|
||||
@@ -78,7 +79,9 @@ def get_s3_client():
|
||||
aws_secret_access_key=secret_key,
|
||||
region_name=region,
|
||||
)
|
||||
current_app.logger.info(hilite("About to call session.client"))
|
||||
s3_client = session.client("s3", config=AWS_CLIENT_CONFIG)
|
||||
current_app.logger.info(hilite("SESSION CALLED"))
|
||||
return s3_client
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user