From 75d0afa906c2dec5b9d05da7c915e1ba38c3a85c Mon Sep 17 00:00:00 2001 From: Nuwan Samarasinghe Date: Wed, 18 Sep 2024 10:09:32 +0100 Subject: [PATCH] db url fix for each env --- config/envs/default.py | 2 +- .../addons/fsd-fund-application-builder-cluster.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/envs/default.py b/config/envs/default.py index a8401e99..9fb63c45 100644 --- a/config/envs/default.py +++ b/config/envs/default.py @@ -16,4 +16,4 @@ class DefaultConfig(object): FAB_SAVE_PER_PAGE = getenv("FAB_SAVE_PER_PAGE", "dev/save") FORM_RUNNER_URL = getenv("FORM_RUNNER_INTERNAL_HOST", "http://form-runner:3009") FORM_RUNNER_URL_REDIRECT = getenv("FORM_RUNNER_EXTERNAL_HOST", "http://localhost:3009") - SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URL").replace("postgres://", "postgresql://") + SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URL") diff --git a/copilot/fsd-fund-application-builder/addons/fsd-fund-application-builder-cluster.yml b/copilot/fsd-fund-application-builder/addons/fsd-fund-application-builder-cluster.yml index 6ce592f6..6c6ea3c7 100644 --- a/copilot/fsd-fund-application-builder/addons/fsd-fund-application-builder-cluster.yml +++ b/copilot/fsd-fund-application-builder/addons/fsd-fund-application-builder-cluster.yml @@ -165,7 +165,7 @@ Outputs: Description: "The URL of this database." Value: !Sub - - "postgres://${USERNAME}:${PASSWORD}@${HOSTNAME}:${PORT}/${DBNAME}" + - "postgresql://${USERNAME}:${PASSWORD}@${HOSTNAME}:${PORT}/${DBNAME}" - USERNAME: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:username}}" ]] # pragma: allowlist secret PASSWORD: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:password}}" ]] # pragma: allowlist secret HOSTNAME: !Join [ "", [ '{{resolve:secretsmanager:', !Ref fsdfundapplicationbuilderclusterAuroraSecret, ":SecretString:host}}" ]] # pragma: allowlist secret