From abe96af358aa3f1981adde7da5b941c9e48ed5ca Mon Sep 17 00:00:00 2001 From: Peter Nemere Date: Fri, 1 Dec 2023 08:17:14 +1000 Subject: [PATCH] Fixed env var for importer lambda --- internal/lambdas/data-import/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lambdas/data-import/main.go b/internal/lambdas/data-import/main.go index 81103d67..e51b1008 100644 --- a/internal/lambdas/data-import/main.go +++ b/internal/lambdas/data-import/main.go @@ -36,7 +36,7 @@ func HandleRequest(ctx context.Context, event awsutil.Event) (string, error) { datasetBucket := os.Getenv("DATASETS_BUCKET") manualBucket := os.Getenv("MANUAL_BUCKET") envName := os.Getenv("ENVIRONMENT_NAME") - mongoSecret := os.Getenv("MONGO_SECRET") // Used to be hard coded to: "pixlise/docdb/masteruser" + mongoSecret := os.Getenv("DB_SECRET_NAME") // Used to be hard coded to: "pixlise/docdb/masteruser" sess, err := awsutil.GetSession() if err != nil {