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

@@ -1,17 +1,11 @@
// import { isPermanentStage } from "./stage";
import { isPermanentStage } from "./stage";
// export const vpc = isPermanentStage
// ? new sst.aws.Vpc("Vpc", {
// az: 2,
// })
// //FIXME: Change this ID
// : undefined //sst.aws.Vpc.get("Vpc", "vpc-070a1a7598f4c12d1");
// //
export const vpc = new sst.aws.Vpc("NestriVpc", {
az: 2,
// For lambdas to work in this VPC
nat: "ec2",
// For SST tunnel to work
bastion: true
})
export const vpc = isPermanentStage
? new sst.aws.Vpc("VPC", {
az: 2,
// For lambdas to work in this VPC
nat: "ec2",
// For SST tunnel to work
bastion: true,
})
: sst.aws.Vpc.get("VPC", "vpc-0beb1cdc21a725748");