Skip to content

Commit

Permalink
Removing db argument for SSL at the moment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellh0079 committed Oct 25, 2024
1 parent 60b9d72 commit f875e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions task/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f875e76

Please sign in to comment.