From e69472f74a0368dc7740613fb6f4fa1ad90e0bd0 Mon Sep 17 00:00:00 2001 From: raynerljm Date: Thu, 9 Nov 2023 17:22:04 +0800 Subject: [PATCH] ci: fix --- backend/user-service/infra/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/user-service/infra/index.ts b/backend/user-service/infra/index.ts index 57ac93de..0b1b1286 100644 --- a/backend/user-service/infra/index.ts +++ b/backend/user-service/infra/index.ts @@ -125,7 +125,7 @@ const mongoUser = new mongodbatlas.DatabaseUser( const clusterUri = mongoCluster.connectionStrings .apply((str) => str[0].standardSrv) .apply((str) => str.split("mongodb+srv://")[1]); -const connectionString = pulumi.interpolate`mongodb+srv://${mongoUser.username}:${mongoUser.password}@${clusterUri}/${MONGO_ATLAS_DB_NAME}?retryWrites=true&w=majority`; +const connectionString = pulumi.interpolate`mongodb+srv://${mongoUser.username}:${mongoUser.password}@${clusterUri}/${MONGO_ATLAS_DB_NAME}?retryWrites=true&w=majority&authSource=admin&directConnection=true`; /** * Provision ECS resources