mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #111 from Hestia-Homes/main
updated DB_USER to DB_USERNAME in github actions code
This commit is contained in:
commit
57350c2f12
1 changed files with 2 additions and 2 deletions
4
.github/workflows/deploy_fastapi_backend.yml
vendored
4
.github/workflows/deploy_fastapi_backend.yml
vendored
|
|
@ -84,11 +84,11 @@ jobs:
|
|||
run: |
|
||||
# Fetch database credentials from AWS Secrets Manager
|
||||
SECRET_VALUE=$(aws secretsmanager get-secret-value --secret-id dev/assessment_model/db_credentials --query SecretString)
|
||||
DB_USER=$(echo "$SECRET_VALUE" | jq -r '. | fromjson | .db_assessment_model_username')
|
||||
DB_USERNAME=$(echo "$SECRET_VALUE" | jq -r '. | fromjson | .db_assessment_model_username')
|
||||
DB_PASSWORD=$(echo "$SECRET_VALUE" | jq -r '. | fromjson | .db_assessment_model_password')
|
||||
|
||||
# Set the database credentials as environment variables
|
||||
export DB_USER
|
||||
export DB_USERNAME
|
||||
export DB_PASSWORD
|
||||
|
||||
# Deploy to AWS Lambda via Serverless
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue