Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ s3-uploader/runtimes/java8/bin
s3-uploader/runtimes/go_on_provided/go1x
s3-uploader/runtimes/quarkus_native_on_provided_al2/target
s3-uploader/runtimes/dotnet7_aot_on_provided_al2/src/obj
s3-uploader/runtimes/llrt_on_provided_al2023/bootstrap
s3-uploader/runtimes/llrt_on_provided_al2023/llrt-lambda-x64.zip
s3-uploader/runtimes/llrt_on_provided_al2023/llrt-lambda-arm64.zip
s3-uploader/runtimes/*/code*.zip



result-builder/node_modules

data
Expand Down
10 changes: 10 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,16 @@
"image": {
"baseImage": "public.ecr.aws/lambda/provided:al2"
}
},
{
"displayName": "llrt (prov.al2023)",
"runtime": "provided.al2023",
"handler": "index.hello",
"path": "bun",
"architectures": ["x86_64", "arm64"],
"image": {
"baseImage": "public.ecr.aws/lambda/provided:al2023"
}
}
]
}
27 changes: 27 additions & 0 deletions s3-uploader/runtimes/llrt_on_provided_al2023/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

## TODO: find a way to make this more generic
LATEST_RELEASE="v0.1.5-beta"

DIR_NAME="./runtimes/$1"

if [ $2 = "x86_64" ]; then
ARCH="x64"
elif [ $2 = "arm64" ]; then
ARCH="arm64"
else
echo "The process architecture $2 is set incorrectly. The value can only be either x86_64 or arm64."
exit 1
fi

rm ${DIR_NAME}/code_${2}.zip 2> /dev/null
rm ${DIR_NAME}/llrt-lambda*.zip 2> /dev/null
rm ${DIR_NAME}/bootstrap 2> /dev/null

# Download the release from github
URL="https://github.com/awslabs/llrt/releases/download/${LATEST_RELEASE}/llrt-lambda-${ARCH}.zip"
curl -L ${URL} > ${DIR_NAME}/llrt-lambda-${ARCH}.zip
unzip ${DIR_NAME}/llrt-lambda-${ARCH} -d ${DIR_NAME}

zip -j ${DIR_NAME}/code_${2}.zip ${DIR_NAME}/index.mjs
zip -j ${DIR_NAME}/code_${2}.zip ${DIR_NAME}/bootstrap
3 changes: 3 additions & 0 deletions s3-uploader/runtimes/llrt_on_provided_al2023/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const handler = async () => ({
statusCode: 200,
});