Commit efcab3f 1 parent 62f7c7d commit efcab3f Copy full SHA for efcab3f
File tree 3 files changed +5
-9
lines changed
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,13 @@ function extractRegionAndTableName(arn) {
33
33
parts [ 5 ] . startsWith ( "table/" )
34
34
) {
35
35
const region = parts [ 3 ] ;
36
- const tableName = parts [ 5 ] . substring ( 6 ) ; // Remove "table/" prefix
36
+ const tableName = parts [ 5 ] . substring ( 6 ) ;
37
37
return { region, tableName } ;
38
38
} else {
39
- return null ; // Return null if ARN format is not recognized
39
+ return null ;
40
40
}
41
41
}
42
42
43
- //import { setTimeout } from "os";
44
-
45
43
const sleep = ( time ) => new Promise ( ( resolve ) => setTimeout ( resolve , time ) ) ;
46
44
47
45
class AsyncProcessor {
Original file line number Diff line number Diff line change 16
16
"esbuild" : " 0.20.0" ,
17
17
"ts-node" : " 10.9.2" ,
18
18
"typescript" : " 5.3.3"
19
- },
20
- "dependencies" : {
21
- "aws-sdk" : " 2.1548.0"
22
19
}
23
20
}
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ const main = async () => {
137
137
TABLE_NAME : table . tableName ,
138
138
BUCKET_NAME : bucket . bucketName ,
139
139
} ,
140
- runtime : aws_lambda . Runtime . NODEJS_18_X ,
140
+ runtime : aws_lambda . Runtime . NODEJS_20_X ,
141
141
memorySize : 128 ,
142
142
timeout : Duration . seconds ( 60 ) ,
143
143
handler : "index.handler" ,
@@ -156,7 +156,8 @@ const main = async () => {
156
156
code : aws_lambda . Code . fromAsset ( "../../llrt-lambda-arm64.zip" ) ,
157
157
compatibleRuntimes : [
158
158
aws_lambda . Runtime . NODEJS_16_X ,
159
- aws_lambda . Runtime . NODEJS_18_X ,
159
+ aws_lambda . Runtime . NODEJS_20_X ,
160
+ aws_lambda . Runtime . NODEJS_20_X ,
160
161
aws_lambda . Runtime . NODEJS_LATEST ,
161
162
aws_lambda . Runtime . PROVIDED_AL2 ,
162
163
] ,
You can’t perform that action at this time.
0 commit comments