From 335f79fb8b27f1ecdec56b89a88c796a4767d0ea Mon Sep 17 00:00:00 2001 From: Olzhas Alexandrov <9992724+o-alexandrov@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:23:11 -0600 Subject: [PATCH] add `nodejs20.x` Signed-off-by: Olzhas Alexandrov <9992724+o-alexandrov@users.noreply.github.com> --- README.md | 1 + manifest.json | 7 +++++++ s3-uploader/runtimes/nodejs20x/build.sh | 6 ++++++ s3-uploader/runtimes/nodejs20x/index.js | 5 +++++ 4 files changed, 19 insertions(+) create mode 100755 s3-uploader/runtimes/nodejs20x/build.sh create mode 100644 s3-uploader/runtimes/nodejs20x/index.js diff --git a/README.md b/README.md index 2799b22547..1c3f6b99a1 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ An ultra simple hello-world function has been written in each AWS supported runt - `nodejs14.x` - `nodejs16.x` - `nodejs18.x` +- `nodejs20.x` - `python3.7` - `python3.8` - `python3.9` diff --git a/manifest.json b/manifest.json index d4f4e7fa08..5263cdd13f 100644 --- a/manifest.json +++ b/manifest.json @@ -29,6 +29,13 @@ "path": "nodejs18x", "architectures": ["x86_64", "arm64"] }, + { + "displayName": "nodejs20.x", + "runtime": "nodejs20.x", + "handler": "index.handler", + "path": "nodejs20x", + "architectures": ["x86_64", "arm64"] + }, { "displayName": "python3.7", "runtime": "python3.7", diff --git a/s3-uploader/runtimes/nodejs20x/build.sh b/s3-uploader/runtimes/nodejs20x/build.sh new file mode 100755 index 0000000000..19cbf9a4c7 --- /dev/null +++ b/s3-uploader/runtimes/nodejs20x/build.sh @@ -0,0 +1,6 @@ +DIR_NAME="./runtimes/$1" +ARCH=$2 + +rm ${DIR_NAME}/code_${ARCH}.zip 2> /dev/null + +zip -j ${DIR_NAME}/code_${ARCH}.zip ${DIR_NAME}/index.js \ No newline at end of file diff --git a/s3-uploader/runtimes/nodejs20x/index.js b/s3-uploader/runtimes/nodejs20x/index.js new file mode 100644 index 0000000000..0671370f5b --- /dev/null +++ b/s3-uploader/runtimes/nodejs20x/index.js @@ -0,0 +1,5 @@ +exports.handler = () => { + return { + statusCode: 200 + }; +}; \ No newline at end of file