From f875e761586c876289a12daf15c1032b531478da Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Fri, 25 Oct 2024 14:54:41 -0500 Subject: [PATCH] Removing db argument for SSL at the moment. --- deploy.sh | 2 +- task/main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 25ef9f4..dab417d 100644 --- a/deploy.sh +++ b/deploy.sh @@ -12,5 +12,5 @@ if [[ -n $AWS_PROFILE ]]; then aws lambda update-function-code \ --profile "${AWS_PROFILE}" --region=us-west-2 \ --function-name "${FUNCTION_NAME}" \ - --zip-file fileb://rds_lambda_package.zip --publish + --zip-file fileb://ghrc_rds_lambda_package.zip --publish fi \ No newline at end of file diff --git a/task/main.py b/task/main.py index 9e98548..8ced09a 100644 --- a/task/main.py +++ b/task/main.py @@ -60,6 +60,7 @@ def get_db_params(): sm = boto3.client('secretsmanager') secrets_arn = os.getenv('CUMULUS_CREDENTIALS_ARN', None) db_init_kwargs = json.loads(sm.get_secret_value(SecretId=secrets_arn).get('SecretString')) + db_init_kwargs.pop('rejectUnauthorized', '') db_init_kwargs.update({'user': db_init_kwargs.pop('username')}) return db_init_kwargs