From 8f4bb05143b4e7458838a7e21c5c4eb07a2e94af Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Tue, 3 Jun 2025 08:10:41 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9C=20fix(infra):=20Reduce=20DB=20ACUs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/postgres.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/infra/postgres.ts b/infra/postgres.ts index 0edbebb4..8c9928ce 100644 --- a/infra/postgres.ts +++ b/infra/postgres.ts @@ -1,16 +1,12 @@ import { vpc } from "./vpc"; -import { isPermanentStage } from "./stage"; -// TODO: Add a dev db to use, this will help with running zero locally... and testing it export const postgres = new sst.aws.Aurora("Database", { vpc, engine: "postgres", - scaling: isPermanentStage - ? undefined - : { - min: "0 ACU", - max: "1 ACU", - }, + scaling: { + min: "0 ACU", + max: "1 ACU", + }, transform: { clusterParameterGroup: { parameters: [