mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
cleanup
This commit is contained in:
@@ -10,7 +10,6 @@ from boto3 import Session
|
||||
from flask import current_app
|
||||
|
||||
from app.clients import AWS_CLIENT_CONFIG
|
||||
from app.utils import hilite
|
||||
from notifications_utils import aware_utcnow
|
||||
|
||||
FILE_LOCATION_STRUCTURE = "service-{}-notify/{}.csv"
|
||||
@@ -84,7 +83,6 @@ def get_s3_client():
|
||||
def get_s3_resource():
|
||||
global s3_resource
|
||||
if s3_resource is None:
|
||||
print(hilite("S3 RESOURCE IS NONE, CREATING IT!"))
|
||||
access_key = current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"]
|
||||
secret_key = current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"]
|
||||
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
|
||||
@@ -94,8 +92,6 @@ def get_s3_resource():
|
||||
region_name=region,
|
||||
)
|
||||
s3_resource = session.resource("s3", config=AWS_CLIENT_CONFIG)
|
||||
else:
|
||||
print(hilite("S3 RESOURCE ALREADY EXSITS, REUSING IT!"))
|
||||
return s3_resource
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user