forked from anomalyco/opencontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsst.config.ts
More file actions
49 lines (48 loc) · 1.25 KB
/
sst.config.ts
File metadata and controls
49 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "opencontrol",
removal: input?.stage === "production" ? "retain" : "remove",
protect: ["production"].includes(input?.stage),
home: "aws",
providers: {
aws: {
region: "us-east-1",
profile: input.stage === "production" ? "sst-production" : "sst-dev",
},
stripe: {
apiKey: process.env.STRIPE_SECRET_KEY,
},
planetscale: "0.2.2",
command: "1.0.2",
random: "4.17.0",
},
}
},
console: {
autodeploy: {
runner(input) {
return {
engine: "codebuild",
compute: "large",
vpc:
input.stage === "production"
? {
id: "vpc-0f06c4b635a760100",
subnets: ["subnet-0af5c5640dfe75a22"],
securityGroups: ["sg-0f360ed3d2f363121"],
}
: {
id: "vpc-069d2d529d3288945",
subnets: ["subnet-0b50769394a27a57d"],
securityGroups: ["sg-038ad39edab8e193b"],
},
}
},
},
},
async run() {
await import("./infra/app")
},
})