mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
🐜 fix(infra): Reduce DB ACUs
This commit is contained in:
@@ -1,13 +1,9 @@
|
|||||||
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",
|
min: "0 ACU",
|
||||||
max: "1 ACU",
|
max: "1 ACU",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user