Remove direct use of aws creds from deployed environments

This commit is contained in:
Ryan Ahearn
2023-02-01 11:57:59 -05:00
parent 6682f306d7
commit aa3043e8df
7 changed files with 35 additions and 52 deletions

View File

@@ -1,9 +1,9 @@
from collections import namedtuple
from os import getenv
from unittest.mock import call
import pytest
from app.s3_client import default_access_key, default_region, default_secret_key
from app.s3_client.s3_logo_client import (
EMAIL_LOGO_LOCATION_STRUCTURE,
TEMP_TAG,
@@ -14,6 +14,9 @@ from app.s3_client.s3_logo_client import (
upload_email_logo,
)
default_access_key = getenv('AWS_ACCESS_KEY_ID')
default_secret_key = getenv('AWS_SECRET_ACCESS_KEY')
default_region = getenv('AWS_REGION')
bucket = 'test_bucket'
bucket_credentials = {
'bucket': bucket,