diff --git a/infrastructure/application/index.ts b/infrastructure/application/index.ts index af8523914e..46893c520b 100644 --- a/infrastructure/application/index.ts +++ b/infrastructure/application/index.ts @@ -114,7 +114,7 @@ export = async () => { vpc, }); - const dbRootUrl: string = config.requireSecret("db-url"); + const dbRootUrl = config.requireSecret("db-url").get(); // ----------------------- Metabase const pgRoot = url.parse(dbRootUrl); diff --git a/infrastructure/application/services/hasura.ts b/infrastructure/application/services/hasura.ts index 244bd566af..686828664f 100644 --- a/infrastructure/application/services/hasura.ts +++ b/infrastructure/application/services/hasura.ts @@ -20,7 +20,7 @@ export const createHasuraService = async ({ }: CreateService) => { const config = new pulumi.Config(); - const dbRootUrl: string = config.requireSecret("db-url"); + const dbRootUrl = config.requireSecret("db-url").get(); const DOMAIN: string = await certificates.requireOutputValue("domain"); const lbHasura = new awsx.lb.ApplicationLoadBalancer("hasura", {