-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsst.config.ts
More file actions
30 lines (29 loc) · 775 Bytes
/
sst.config.ts
File metadata and controls
30 lines (29 loc) · 775 Bytes
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
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "personal-site",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: {
aws: {
region: "us-east-1",
profile:
input.stage === "production"
? "adamdotdev-production"
: "adamdotdev-dev",
},
"pulumi-stripe": true,
},
};
},
async run() {
const { readdirSync } = require("fs");
const outputs = {};
for (const value of readdirSync("./infra/")) {
const result = await import("./infra/" + value);
if (result.outputs) Object.assign(outputs, result.outputs);
}
return outputs;
},
});