mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
remove hardcoded stage in database credentials fetch
This commit is contained in:
parent
238bea1f39
commit
9a98503569
1 changed files with 1 additions and 1 deletions
2
.github/workflows/deploy_fastapi_backend.yml
vendored
2
.github/workflows/deploy_fastapi_backend.yml
vendored
|
|
@ -94,7 +94,7 @@ jobs:
|
||||||
ECR_URI: ${{ steps.set_ecr_credentials.outputs.ecr_uri }}
|
ECR_URI: ${{ steps.set_ecr_credentials.outputs.ecr_uri }}
|
||||||
run: |
|
run: |
|
||||||
# Fetch database credentials from AWS Secrets Manager
|
# Fetch database credentials from AWS Secrets Manager
|
||||||
SECRET_VALUE=$(aws secretsmanager get-secret-value --secret-id dev/assessment_model/db_credentials --query SecretString)
|
SECRET_VALUE=$(aws secretsmanager get-secret-value --secret-id ${{ github.ref_name }}/assessment_model/db_credentials --query SecretString)
|
||||||
DB_USERNAME=$(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')
|
DB_PASSWORD=$(echo "$SECRET_VALUE" | jq -r '. | fromjson | .db_assessment_model_password')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue