🐜 fix(infra): Reduce DB ACUs

This commit is contained in:
Wanjohi
2025-06-03 08:10:41 +03:00
parent 84357ac5bf
commit 8f4bb05143

View File

@@ -1,16 +1,12 @@
import { vpc } from "./vpc"; 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", { export const postgres = new sst.aws.Aurora("Database", {
vpc, vpc,
engine: "postgres", engine: "postgres",
scaling: isPermanentStage scaling: {
? undefined min: "0 ACU",
: { max: "1 ACU",
min: "0 ACU", },
max: "1 ACU",
},
transform: { transform: {
clusterParameterGroup: { clusterParameterGroup: {
parameters: [ parameters: [