feat(infra): Use a shared VPC (#218)

## Description
The scope of this PR is to add a shared VPC for everyone on the team.
This commit is contained in:
Wanjohi
2025-03-26 06:29:25 +03:00
committed by GitHub
parent 633b332700
commit 7ecc068466
10 changed files with 27 additions and 48 deletions

View File

@@ -2,9 +2,9 @@ import { Resource } from "sst";
import { defineConfig } from "drizzle-kit";
const connection = {
user: Resource.Postgres.username,
password: Resource.Postgres.password,
host: Resource.Postgres.host,
user: Resource.Database.username,
password: Resource.Database.password,
host: Resource.Database.host,
};
export default defineConfig({

View File

@@ -6,11 +6,11 @@ import { drizzle } from "drizzle-orm/postgres-js";
const client = postgres({
idle_timeout: 30000,
connect_timeout: 30000,
host: Resource.Postgres.host,
database: Resource.Postgres.database,
user: Resource.Postgres.username,
password: Resource.Postgres.password,
port: Resource.Postgres.port,
host: Resource.Database.host,
database: Resource.Database.database,
user: Resource.Database.username,
password: Resource.Database.password,
port: Resource.Database.port,
max: parseInt(process.env.POSTGRES_POOL_MAX || "1"),
});

View File

@@ -28,13 +28,6 @@ declare module "sst" {
"name": string
"type": "sst.aws.Bus"
}
"Database": {
"host": string
"name": string
"password": string
"type": "sst.sst.Linkable"
"user": string
}
"DatabaseMigrator": {
"name": string
"type": "sst.aws.Function"