-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsst.config.ts
68 lines (66 loc) · 1.83 KB
/
sst.config.ts
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "console",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: {
aws: {
region: "us-east-1",
profile: input.stage === "production" ? "sst-production" : "sst-dev",
},
planetscale: "0.2.2",
command: "1.0.2",
},
};
},
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() {
const { vpc } = await import("./infra/network");
$transform(sst.aws.Function, (args) => {
args.vpc = vpc;
});
await import("./infra/dns");
await import("./infra/cluster");
await import("./infra/planetscale");
await import("./infra/websocket");
await import("./infra/postgres");
await import("./infra/bus");
await import("./infra/event");
await import("./infra/email");
await import("./infra/alerts");
await import("./infra/storage");
await import("./infra/auth");
await import("./infra/api");
await import("./infra/web");
await import("./infra/issues");
await import("./infra/autodeploy");
await import("./infra/billing");
await import("./infra/cluster");
return {
bar: "ok",
};
},
});