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