sst 2.36.2 → 2.36.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constructs/App.d.ts +1 -1
- package/constructs/App.js +1 -1
- package/constructs/AstroSite.d.ts +1 -1
- package/constructs/EdgeFunction.d.ts +1 -1
- package/constructs/EdgeFunction.js +5 -3
- package/constructs/Function.d.ts +4 -1
- package/constructs/Function.js +3 -0
- package/constructs/NextjsSite.d.ts +33 -5
- package/constructs/NextjsSite.js +10 -8
- package/constructs/RemixSite.d.ts +1 -1
- package/constructs/SolidStartSite.d.ts +1 -1
- package/constructs/SsrFunction.d.ts +2 -2
- package/constructs/SsrFunction.js +5 -1
- package/constructs/SsrSite.d.ts +3 -3
- package/constructs/SvelteKitSite.d.ts +1 -1
- package/constructs/deprecated/NextjsSite.d.ts +1 -1
- package/constructs/deprecated/NextjsSite.js +3 -0
- package/package.json +38 -38
- package/project.js +2 -2
- package/runtime/handlers/node.js +1 -1
- package/runtime/handlers/python.js +1 -2
- package/support/bootstrap-metadata-function/index.mjs +6458 -9757
- package/support/bridge/bridge.mjs +42 -47
- package/support/custom-resources/index.mjs +8198 -11324
- package/support/event-bus-retrier/index.mjs +23 -21
- package/support/job-manager/index.mjs +4612 -7868
- package/support/rds-migrator/index.mjs +26 -22
- package/support/script-function/index.mjs +6315 -9559
- package/support/signing-function/index.mjs +1090 -1005
- package/support/ssr-warmer/index.mjs +6013 -9285
package/constructs/App.d.ts
CHANGED
package/constructs/App.js
CHANGED
|
@@ -70,7 +70,7 @@ export declare class AstroSite extends SsrSite {
|
|
|
70
70
|
data: {
|
|
71
71
|
mode: "placeholder" | "deployed";
|
|
72
72
|
path: string;
|
|
73
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
73
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
74
74
|
customDomainUrl: string | undefined;
|
|
75
75
|
url: string | undefined;
|
|
76
76
|
edge: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ import { Permissions } from "./util/permission.js";
|
|
|
9
9
|
export interface EdgeFunctionProps {
|
|
10
10
|
bundle?: string;
|
|
11
11
|
handler: string;
|
|
12
|
-
runtime?: "nodejs16.x" | "nodejs18.x";
|
|
12
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
13
13
|
timeout?: number | Duration;
|
|
14
14
|
memorySize?: number | Size;
|
|
15
15
|
permissions?: Permissions;
|
|
@@ -346,9 +346,11 @@ export class EdgeFunction extends Construct {
|
|
|
346
346
|
S3Bucket: assetBucket,
|
|
347
347
|
S3Key: assetKey,
|
|
348
348
|
},
|
|
349
|
-
Runtime: runtime === "
|
|
350
|
-
? Runtime.
|
|
351
|
-
:
|
|
349
|
+
Runtime: runtime === "nodejs20.x"
|
|
350
|
+
? Runtime.NODEJS_20_X.name
|
|
351
|
+
: runtime === "nodejs16.x"
|
|
352
|
+
? Runtime.NODEJS_16_X.name
|
|
353
|
+
: Runtime.NODEJS_18_X.name,
|
|
352
354
|
MemorySize: typeof memorySize === "string"
|
|
353
355
|
? toCdkSize(memorySize).toMebibytes()
|
|
354
356
|
: memorySize,
|
package/constructs/Function.d.ts
CHANGED
|
@@ -16,16 +16,19 @@ declare const supportedRuntimes: {
|
|
|
16
16
|
rust: CDKRuntime;
|
|
17
17
|
"nodejs16.x": CDKRuntime;
|
|
18
18
|
"nodejs18.x": CDKRuntime;
|
|
19
|
+
"nodejs20.x": CDKRuntime;
|
|
19
20
|
"python3.7": CDKRuntime;
|
|
20
21
|
"python3.8": CDKRuntime;
|
|
21
22
|
"python3.9": CDKRuntime;
|
|
22
23
|
"python3.10": CDKRuntime;
|
|
23
24
|
"python3.11": CDKRuntime;
|
|
25
|
+
"python3.12": CDKRuntime;
|
|
24
26
|
"dotnetcore3.1": CDKRuntime;
|
|
25
27
|
dotnet6: CDKRuntime;
|
|
26
28
|
java8: CDKRuntime;
|
|
27
29
|
java11: CDKRuntime;
|
|
28
30
|
java17: CDKRuntime;
|
|
31
|
+
java21: CDKRuntime;
|
|
29
32
|
"go1.x": CDKRuntime;
|
|
30
33
|
go: CDKRuntime;
|
|
31
34
|
};
|
|
@@ -702,7 +705,7 @@ export declare class Function extends CDKFunction implements SSTConstruct {
|
|
|
702
705
|
type: "Function";
|
|
703
706
|
data: {
|
|
704
707
|
arn: string;
|
|
705
|
-
runtime: "container" | "rust" | "nodejs16.x" | "nodejs18.x" | "python3.7" | "python3.8" | "python3.9" | "python3.10" | "python3.11" | "dotnetcore3.1" | "dotnet6" | "java8" | "java11" | "java17" | "go1.x" | "go" | undefined;
|
|
708
|
+
runtime: "container" | "rust" | "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | "python3.7" | "python3.8" | "python3.9" | "python3.10" | "python3.11" | "python3.12" | "dotnetcore3.1" | "dotnet6" | "java8" | "java11" | "java17" | "java21" | "go1.x" | "go" | undefined;
|
|
706
709
|
handler: string | undefined;
|
|
707
710
|
missingSourcemap: boolean | undefined;
|
|
708
711
|
localId: string;
|
package/constructs/Function.js
CHANGED
|
@@ -33,16 +33,19 @@ const supportedRuntimes = {
|
|
|
33
33
|
rust: CDKRuntime.PROVIDED_AL2,
|
|
34
34
|
"nodejs16.x": CDKRuntime.NODEJS_16_X,
|
|
35
35
|
"nodejs18.x": CDKRuntime.NODEJS_18_X,
|
|
36
|
+
"nodejs20.x": CDKRuntime.NODEJS_20_X,
|
|
36
37
|
"python3.7": CDKRuntime.PYTHON_3_7,
|
|
37
38
|
"python3.8": CDKRuntime.PYTHON_3_8,
|
|
38
39
|
"python3.9": CDKRuntime.PYTHON_3_9,
|
|
39
40
|
"python3.10": CDKRuntime.PYTHON_3_10,
|
|
40
41
|
"python3.11": CDKRuntime.PYTHON_3_11,
|
|
42
|
+
"python3.12": CDKRuntime.PYTHON_3_12,
|
|
41
43
|
"dotnetcore3.1": CDKRuntime.DOTNET_CORE_3_1,
|
|
42
44
|
dotnet6: CDKRuntime.DOTNET_6,
|
|
43
45
|
java8: CDKRuntime.JAVA_8,
|
|
44
46
|
java11: CDKRuntime.JAVA_11,
|
|
45
47
|
java17: CDKRuntime.JAVA_17,
|
|
48
|
+
java21: CDKRuntime.JAVA_21,
|
|
46
49
|
"go1.x": CDKRuntime.PROVIDED_AL2,
|
|
47
50
|
go: CDKRuntime.PROVIDED_AL2,
|
|
48
51
|
};
|
|
@@ -151,7 +151,7 @@ export declare class NextjsSite extends SsrSite {
|
|
|
151
151
|
layers: import("aws-cdk-lib/aws-lambda").ILayerVersion[] | undefined;
|
|
152
152
|
handler: string;
|
|
153
153
|
bundle?: string | undefined;
|
|
154
|
-
runtime?: "nodejs16.x" | "nodejs18.x" | undefined;
|
|
154
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | undefined;
|
|
155
155
|
timeout?: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
|
|
156
156
|
memorySize?: number | `${number} MB` | `${number} GB` | undefined;
|
|
157
157
|
permissions?: import("./index.js").Permissions | undefined;
|
|
@@ -190,6 +190,10 @@ export declare class NextjsSite extends SsrSite {
|
|
|
190
190
|
environmentEncryption?: import("aws-cdk-lib/aws-kms").IKey | undefined;
|
|
191
191
|
codeSigningConfig?: import("aws-cdk-lib/aws-lambda").ICodeSigningConfig | undefined;
|
|
192
192
|
runtimeManagementMode?: import("aws-cdk-lib/aws-lambda").RuntimeManagementMode | undefined;
|
|
193
|
+
logGroup?: import("aws-cdk-lib/aws-logs").ILogGroup | undefined;
|
|
194
|
+
logFormat?: string | undefined;
|
|
195
|
+
applicationLogLevel?: string | undefined;
|
|
196
|
+
systemLogLevel?: string | undefined;
|
|
193
197
|
onFailure?: import("aws-cdk-lib/aws-lambda").IDestination | undefined;
|
|
194
198
|
onSuccess?: import("aws-cdk-lib/aws-lambda").IDestination | undefined;
|
|
195
199
|
maxEventAge?: CdkDuration | undefined;
|
|
@@ -198,10 +202,20 @@ export declare class NextjsSite extends SsrSite {
|
|
|
198
202
|
layers: import("aws-cdk-lib/aws-lambda").ILayerVersion[] | undefined;
|
|
199
203
|
handler: string;
|
|
200
204
|
bundle?: string | undefined;
|
|
201
|
-
runtime?: "nodejs16.x" | "nodejs18.x" | undefined;
|
|
205
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | undefined;
|
|
202
206
|
timeout?: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
|
|
203
207
|
memorySize?: number | `${number} MB` | `${number} GB` | undefined;
|
|
204
208
|
permissions?: import("./index.js").Permissions | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* How the logs are stored in CloudWatch
|
|
211
|
+
* - "combined" - Logs from all routes are stored in the same log group.
|
|
212
|
+
* - "per-route" - Logs from each route are stored in a separate log group.
|
|
213
|
+
* @default "per-route"
|
|
214
|
+
* @example
|
|
215
|
+
* ```js
|
|
216
|
+
* logging: "combined",
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
205
219
|
environment?: Record<string, string> | undefined;
|
|
206
220
|
bind?: import("./Construct.js").SSTConstruct[] | undefined;
|
|
207
221
|
nodejs?: import("./Function.js").NodeJSProps | undefined;
|
|
@@ -248,7 +262,7 @@ export declare class NextjsSite extends SsrSite {
|
|
|
248
262
|
layers: import("aws-cdk-lib/aws-lambda").ILayerVersion[] | undefined;
|
|
249
263
|
handler: string;
|
|
250
264
|
bundle?: string | undefined;
|
|
251
|
-
runtime?: "nodejs16.x" | "nodejs18.x" | undefined;
|
|
265
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | undefined;
|
|
252
266
|
timeout?: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
|
|
253
267
|
memorySize?: number | `${number} MB` | `${number} GB` | undefined;
|
|
254
268
|
permissions?: import("./index.js").Permissions | undefined;
|
|
@@ -287,6 +301,10 @@ export declare class NextjsSite extends SsrSite {
|
|
|
287
301
|
environmentEncryption?: import("aws-cdk-lib/aws-kms").IKey | undefined;
|
|
288
302
|
codeSigningConfig?: import("aws-cdk-lib/aws-lambda").ICodeSigningConfig | undefined;
|
|
289
303
|
runtimeManagementMode?: import("aws-cdk-lib/aws-lambda").RuntimeManagementMode | undefined;
|
|
304
|
+
logGroup?: import("aws-cdk-lib/aws-logs").ILogGroup | undefined;
|
|
305
|
+
logFormat?: string | undefined;
|
|
306
|
+
applicationLogLevel?: string | undefined;
|
|
307
|
+
systemLogLevel?: string | undefined;
|
|
290
308
|
onFailure?: import("aws-cdk-lib/aws-lambda").IDestination | undefined;
|
|
291
309
|
onSuccess?: import("aws-cdk-lib/aws-lambda").IDestination | undefined;
|
|
292
310
|
maxEventAge?: CdkDuration | undefined;
|
|
@@ -295,10 +313,20 @@ export declare class NextjsSite extends SsrSite {
|
|
|
295
313
|
layers: import("aws-cdk-lib/aws-lambda").ILayerVersion[] | undefined;
|
|
296
314
|
handler: string;
|
|
297
315
|
bundle?: string | undefined;
|
|
298
|
-
runtime?: "nodejs16.x" | "nodejs18.x" | undefined;
|
|
316
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | undefined;
|
|
299
317
|
timeout?: number | `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | undefined;
|
|
300
318
|
memorySize?: number | `${number} MB` | `${number} GB` | undefined;
|
|
301
319
|
permissions?: import("./index.js").Permissions | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* How the logs are stored in CloudWatch
|
|
322
|
+
* - "combined" - Logs from all routes are stored in the same log group.
|
|
323
|
+
* - "per-route" - Logs from each route are stored in a separate log group.
|
|
324
|
+
* @default "per-route"
|
|
325
|
+
* @example
|
|
326
|
+
* ```js
|
|
327
|
+
* logging: "combined",
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
302
330
|
environment?: Record<string, string> | undefined;
|
|
303
331
|
bind?: import("./Construct.js").SSTConstruct[] | undefined;
|
|
304
332
|
nodejs?: import("./Function.js").NodeJSProps | undefined;
|
|
@@ -338,7 +366,7 @@ export declare class NextjsSite extends SsrSite {
|
|
|
338
366
|
} | undefined;
|
|
339
367
|
mode: "placeholder" | "deployed";
|
|
340
368
|
path: string;
|
|
341
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
369
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
342
370
|
customDomainUrl: string | undefined;
|
|
343
371
|
url: string | undefined;
|
|
344
372
|
edge: boolean | undefined;
|
package/constructs/NextjsSite.js
CHANGED
|
@@ -339,17 +339,19 @@ export class NextjsSite extends SsrSite {
|
|
|
339
339
|
const injections = [];
|
|
340
340
|
if (this.isPerRouteLoggingEnabled()) {
|
|
341
341
|
injections.push(`
|
|
342
|
-
|
|
342
|
+
if (event.rawPath) {
|
|
343
|
+
const routeData = ${JSON.stringify(this.useRoutes().map(({ regex, logGroupPath }) => ({
|
|
343
344
|
regex,
|
|
344
345
|
logGroupPath,
|
|
345
346
|
})))}.find(({ regex }) => event.rawPath.match(new RegExp(regex)));
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
347
|
+
if (routeData) {
|
|
348
|
+
console.log("::sst::" + JSON.stringify({
|
|
349
|
+
action:"log.split",
|
|
350
|
+
properties: {
|
|
351
|
+
logGroupName:"/sst/lambda/" + context.functionName + routeData.logGroupPath,
|
|
352
|
+
},
|
|
353
|
+
}));
|
|
354
|
+
}
|
|
353
355
|
}`);
|
|
354
356
|
}
|
|
355
357
|
fs.writeFileSync(path.join(serverPath, `${wrapperName}.mjs`), experimental?.streaming
|
|
@@ -99,7 +99,7 @@ export declare class RemixSite extends SsrSite {
|
|
|
99
99
|
data: {
|
|
100
100
|
mode: "placeholder" | "deployed";
|
|
101
101
|
path: string;
|
|
102
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
102
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
103
103
|
customDomainUrl: string | undefined;
|
|
104
104
|
url: string | undefined;
|
|
105
105
|
edge: boolean | undefined;
|
|
@@ -79,7 +79,7 @@ export declare class SolidStartSite extends SsrSite {
|
|
|
79
79
|
data: {
|
|
80
80
|
mode: "placeholder" | "deployed";
|
|
81
81
|
path: string;
|
|
82
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
82
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
83
83
|
customDomainUrl: string | undefined;
|
|
84
84
|
url: string | undefined;
|
|
85
85
|
edge: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ import { Duration } from "./util/duration.js";
|
|
|
10
10
|
export interface SsrFunctionProps extends Omit<FunctionOptions, "memorySize" | "timeout" | "runtime"> {
|
|
11
11
|
bundle?: string;
|
|
12
12
|
handler: string;
|
|
13
|
-
runtime?: "nodejs16.x" | "nodejs18.x";
|
|
13
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
14
14
|
timeout?: number | Duration;
|
|
15
15
|
memorySize?: number | Size;
|
|
16
16
|
permissions?: Permissions;
|
|
@@ -50,7 +50,7 @@ export declare class SsrFunction extends Construct implements SSTConstruct {
|
|
|
50
50
|
type: "Function";
|
|
51
51
|
data: {
|
|
52
52
|
arn: string;
|
|
53
|
-
runtime: "nodejs16.x" | "nodejs18.x" | undefined;
|
|
53
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x" | undefined;
|
|
54
54
|
handler: string;
|
|
55
55
|
missingSourcemap: boolean | undefined;
|
|
56
56
|
localId: string;
|
|
@@ -97,7 +97,11 @@ export class SsrFunction extends Construct {
|
|
|
97
97
|
handler: handler.split(path.sep).join(path.posix.sep),
|
|
98
98
|
logRetention: logRetention ?? RetentionDays.THREE_DAYS,
|
|
99
99
|
code: Code.fromBucket(Bucket.fromBucketName(this, "IServerFunctionBucket", assetBucket), assetKey),
|
|
100
|
-
runtime: runtime === "
|
|
100
|
+
runtime: runtime === "nodejs20.x"
|
|
101
|
+
? Runtime.NODEJS_20_X
|
|
102
|
+
: runtime === "nodejs16.x"
|
|
103
|
+
? Runtime.NODEJS_16_X
|
|
104
|
+
: Runtime.NODEJS_18_X,
|
|
101
105
|
architecture: architecture || Architecture.ARM_64,
|
|
102
106
|
memorySize: typeof memorySize === "string"
|
|
103
107
|
? toCdkSize(memorySize).toMebibytes()
|
package/constructs/SsrSite.d.ts
CHANGED
|
@@ -135,10 +135,10 @@ export interface SsrSiteProps {
|
|
|
135
135
|
* @default nodejs18.x
|
|
136
136
|
* @example
|
|
137
137
|
* ```js
|
|
138
|
-
* runtime: "
|
|
138
|
+
* runtime: "nodejs20.x",
|
|
139
139
|
* ```
|
|
140
140
|
*/
|
|
141
|
-
runtime?: "nodejs16.x" | "nodejs18.x";
|
|
141
|
+
runtime?: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
142
142
|
/**
|
|
143
143
|
* Used to configure nodejs function properties
|
|
144
144
|
*/
|
|
@@ -454,7 +454,7 @@ export declare abstract class SsrSite extends Construct implements SSTConstruct
|
|
|
454
454
|
data: {
|
|
455
455
|
mode: "placeholder" | "deployed";
|
|
456
456
|
path: string;
|
|
457
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
457
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
458
458
|
customDomainUrl: string | undefined;
|
|
459
459
|
url: string | undefined;
|
|
460
460
|
edge: boolean | undefined;
|
|
@@ -110,7 +110,7 @@ export declare class SvelteKitSite extends SsrSite {
|
|
|
110
110
|
data: {
|
|
111
111
|
mode: "placeholder" | "deployed";
|
|
112
112
|
path: string;
|
|
113
|
-
runtime: "nodejs16.x" | "nodejs18.x";
|
|
113
|
+
runtime: "nodejs16.x" | "nodejs18.x" | "nodejs20.x";
|
|
114
114
|
customDomainUrl: string | undefined;
|
|
115
115
|
url: string | undefined;
|
|
116
116
|
edge: boolean | undefined;
|
|
@@ -1039,6 +1039,9 @@ export class NextjsSite extends Construct {
|
|
|
1039
1039
|
return replaceValues;
|
|
1040
1040
|
}
|
|
1041
1041
|
normalizeRuntime(runtime) {
|
|
1042
|
+
if (runtime === "nodejs20.x") {
|
|
1043
|
+
return lambda.Runtime.NODEJS_20_X;
|
|
1044
|
+
}
|
|
1042
1045
|
if (runtime === "nodejs16.x") {
|
|
1043
1046
|
return lambda.Runtime.NODEJS_16_X;
|
|
1044
1047
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sideEffects": false,
|
|
3
3
|
"name": "sst",
|
|
4
|
-
"version": "2.36.
|
|
4
|
+
"version": "2.36.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sst": "cli/sst.js"
|
|
7
7
|
},
|
|
@@ -25,47 +25,47 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://sst.dev",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-cdk/aws-apigatewayv2-alpha": "^2.
|
|
29
|
-
"@aws-cdk/aws-apigatewayv2-authorizers-alpha": "^2.
|
|
30
|
-
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "^2.
|
|
31
|
-
"@aws-cdk/cloud-assembly-schema": "2.
|
|
32
|
-
"@aws-cdk/cloudformation-diff": "2.
|
|
33
|
-
"@aws-cdk/cx-api": "2.
|
|
34
|
-
"@aws-crypto/sha256-js": "^5.
|
|
35
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
36
|
-
"@aws-sdk/client-ecs": "^3.
|
|
37
|
-
"@aws-sdk/client-eventbridge": "^3.
|
|
38
|
-
"@aws-sdk/client-iam": "^3.
|
|
39
|
-
"@aws-sdk/client-iot": "^3.
|
|
40
|
-
"@aws-sdk/client-iot-data-plane": "^3.
|
|
41
|
-
"@aws-sdk/client-lambda": "^3.
|
|
42
|
-
"@aws-sdk/client-rds-data": "^3.
|
|
43
|
-
"@aws-sdk/client-s3": "^3.
|
|
44
|
-
"@aws-sdk/client-ssm": "^3.
|
|
45
|
-
"@aws-sdk/client-sts": "^3.
|
|
28
|
+
"@aws-cdk/aws-apigatewayv2-alpha": "^2.110.1-alpha.0",
|
|
29
|
+
"@aws-cdk/aws-apigatewayv2-authorizers-alpha": "^2.110.1-alpha.0",
|
|
30
|
+
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "^2.110.1-alpha.0",
|
|
31
|
+
"@aws-cdk/cloud-assembly-schema": "2.110.1",
|
|
32
|
+
"@aws-cdk/cloudformation-diff": "2.110.1",
|
|
33
|
+
"@aws-cdk/cx-api": "2.110.1",
|
|
34
|
+
"@aws-crypto/sha256-js": "^5.2.0",
|
|
35
|
+
"@aws-sdk/client-cloudformation": "^3.454.0",
|
|
36
|
+
"@aws-sdk/client-ecs": "^3.454.0",
|
|
37
|
+
"@aws-sdk/client-eventbridge": "^3.454.0",
|
|
38
|
+
"@aws-sdk/client-iam": "^3.454.0",
|
|
39
|
+
"@aws-sdk/client-iot": "^3.454.0",
|
|
40
|
+
"@aws-sdk/client-iot-data-plane": "^3.454.0",
|
|
41
|
+
"@aws-sdk/client-lambda": "^3.454.0",
|
|
42
|
+
"@aws-sdk/client-rds-data": "^3.454.0",
|
|
43
|
+
"@aws-sdk/client-s3": "^3.454.0",
|
|
44
|
+
"@aws-sdk/client-ssm": "^3.454.0",
|
|
45
|
+
"@aws-sdk/client-sts": "^3.454.0",
|
|
46
46
|
"@aws-sdk/config-resolver": "^3.374.0",
|
|
47
|
-
"@aws-sdk/credential-providers": "^3.
|
|
47
|
+
"@aws-sdk/credential-providers": "^3.454.0",
|
|
48
48
|
"@aws-sdk/middleware-retry": "^3.374.0",
|
|
49
|
-
"@aws-sdk/middleware-signing": "^3.
|
|
50
|
-
"@aws-sdk/signature-v4-crt": "^3.
|
|
49
|
+
"@aws-sdk/middleware-signing": "^3.451.0",
|
|
50
|
+
"@aws-sdk/signature-v4-crt": "^3.451.0",
|
|
51
51
|
"@aws-sdk/smithy-client": "^3.374.0",
|
|
52
52
|
"@babel/core": "^7.0.0-0",
|
|
53
53
|
"@babel/generator": "^7.20.5",
|
|
54
54
|
"@babel/plugin-syntax-typescript": "^7.21.4",
|
|
55
|
-
"@smithy/signature-v4": "^2.0.
|
|
55
|
+
"@smithy/signature-v4": "^2.0.16",
|
|
56
56
|
"@trpc/server": "9.16.0",
|
|
57
57
|
"adm-zip": "^0.5.10",
|
|
58
|
-
"aws-cdk-lib": "2.
|
|
58
|
+
"aws-cdk-lib": "2.110.1",
|
|
59
59
|
"aws-iot-device-sdk": "^2.2.13",
|
|
60
|
-
"aws-sdk": "^2.
|
|
60
|
+
"aws-sdk": "^2.1501.0",
|
|
61
61
|
"builtin-modules": "3.2.0",
|
|
62
|
-
"cdk-assets": "2.
|
|
62
|
+
"cdk-assets": "2.110.1",
|
|
63
63
|
"chalk": "^5.2.0",
|
|
64
64
|
"chokidar": "^3.5.3",
|
|
65
65
|
"ci-info": "^3.7.0",
|
|
66
66
|
"colorette": "^2.0.19",
|
|
67
67
|
"conf": "^10.2.0",
|
|
68
|
-
"constructs": "10.
|
|
68
|
+
"constructs": "10.3.0",
|
|
69
69
|
"cross-spawn": "^7.0.3",
|
|
70
70
|
"dendriform-immer-patch-optimiser": "^2.1.0",
|
|
71
71
|
"dotenv": "^16.0.3",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"ora": "^6.1.2",
|
|
88
88
|
"react": "^18.0.0",
|
|
89
89
|
"remeda": "^1.3.0",
|
|
90
|
-
"sst-aws-cdk": "2.
|
|
90
|
+
"sst-aws-cdk": "2.110.1-1",
|
|
91
91
|
"tree-kill": "^1.2.2",
|
|
92
92
|
"undici": "^5.12.0",
|
|
93
93
|
"uuid": "^9.0.0",
|
|
@@ -96,20 +96,20 @@
|
|
|
96
96
|
"zod": "^3.21.4"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@aws-sdk/client-api-gateway": "^3.
|
|
100
|
-
"@aws-sdk/client-cloudfront": "^3.
|
|
101
|
-
"@aws-sdk/client-codebuild": "^3.
|
|
102
|
-
"@aws-sdk/client-sqs": "^3.
|
|
103
|
-
"@aws-sdk/types": "^3.
|
|
99
|
+
"@aws-sdk/client-api-gateway": "^3.454.0",
|
|
100
|
+
"@aws-sdk/client-cloudfront": "^3.454.0",
|
|
101
|
+
"@aws-sdk/client-codebuild": "^3.454.0",
|
|
102
|
+
"@aws-sdk/client-sqs": "^3.454.0",
|
|
103
|
+
"@aws-sdk/types": "^3.451.0",
|
|
104
104
|
"@graphql-tools/merge": "^8.3.16",
|
|
105
105
|
"@sls-next/lambda-at-edge": "^3.7.0",
|
|
106
|
-
"@smithy/types": "^2.
|
|
106
|
+
"@smithy/types": "^2.6.0",
|
|
107
107
|
"@tsconfig/node16": "^1.0.3",
|
|
108
108
|
"@tsconfig/node18": "^18.2.2",
|
|
109
109
|
"@types/adm-zip": "^0.5.0",
|
|
110
|
-
"@types/async": "^3.2.
|
|
111
|
-
"@types/aws-iot-device-sdk": "^2.2.
|
|
112
|
-
"@types/aws-lambda": "^8.10.
|
|
110
|
+
"@types/async": "^3.2.24",
|
|
111
|
+
"@types/aws-iot-device-sdk": "^2.2.8",
|
|
112
|
+
"@types/aws-lambda": "^8.10.128",
|
|
113
113
|
"@types/babel__core": "^7.1.20",
|
|
114
114
|
"@types/babel__generator": "^7.6.4",
|
|
115
115
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@types/ws": "^8.5.3",
|
|
121
121
|
"@types/yargs": "^17.0.13",
|
|
122
122
|
"archiver": "^5.3.1",
|
|
123
|
-
"astro-sst": "2.36.
|
|
123
|
+
"astro-sst": "2.36.4",
|
|
124
124
|
"async": "^3.2.4",
|
|
125
125
|
"tsx": "^3.12.1",
|
|
126
126
|
"typescript": "^5.2.2",
|
package/project.js
CHANGED
|
@@ -48,7 +48,7 @@ export async function initProject(globals) {
|
|
|
48
48
|
// Logger.debug("loaded sst config");
|
|
49
49
|
return [metafile, config];
|
|
50
50
|
}
|
|
51
|
-
throw new VisibleError("Could not
|
|
51
|
+
throw new VisibleError("Could not find a configuration file", "Make sure one of the following exists", ...CONFIG_EXTENSIONS.map((x) => ` - sst${x}`));
|
|
52
52
|
})();
|
|
53
53
|
const config = await Promise.resolve(sstConfig.config(globals));
|
|
54
54
|
const stage = process.env.SST_STAGE ||
|
|
@@ -163,7 +163,7 @@ async function promptPersonalStage(out, isRetry) {
|
|
|
163
163
|
async function findRoot() {
|
|
164
164
|
async function find(dir) {
|
|
165
165
|
if (dir === "/")
|
|
166
|
-
throw new VisibleError("Could not
|
|
166
|
+
throw new VisibleError("Could not find a configuration file", "Make sure one of the following exists", ...CONFIG_EXTENSIONS.map((ext) => ` - sst${ext}`));
|
|
167
167
|
for (const ext of CONFIG_EXTENSIONS) {
|
|
168
168
|
const configPath = path.join(dir, `sst${ext}`);
|
|
169
169
|
if (fsSync.existsSync(configPath)) {
|
package/runtime/handlers/node.js
CHANGED
|
@@ -113,7 +113,7 @@ export const useNodeHandler = () => {
|
|
|
113
113
|
const forceExternal = [
|
|
114
114
|
"sharp",
|
|
115
115
|
"pg-native",
|
|
116
|
-
...(isESM || input.props.runtime
|
|
116
|
+
...(isESM || input.props.runtime !== "nodejs16.x" ? [] : ["aws-sdk"]),
|
|
117
117
|
];
|
|
118
118
|
const { external, ...override } = nodejs.esbuild || {};
|
|
119
119
|
if (!ctx) {
|
|
@@ -9,13 +9,12 @@ import os from "os";
|
|
|
9
9
|
import url from "url";
|
|
10
10
|
import fs from "fs/promises";
|
|
11
11
|
const RUNTIME_MAP = {
|
|
12
|
-
"python2.7": Runtime.PYTHON_2_7,
|
|
13
|
-
"python3.6": Runtime.PYTHON_3_6,
|
|
14
12
|
"python3.7": Runtime.PYTHON_3_7,
|
|
15
13
|
"python3.8": Runtime.PYTHON_3_8,
|
|
16
14
|
"python3.9": Runtime.PYTHON_3_9,
|
|
17
15
|
"python3.10": Runtime.PYTHON_3_10,
|
|
18
16
|
"python3.11": Runtime.PYTHON_3_11,
|
|
17
|
+
"python3.12": Runtime.PYTHON_3_12,
|
|
19
18
|
};
|
|
20
19
|
export const usePythonHandler = () => {
|
|
21
20
|
const processes = new Map();
|