Skip to content

Commit

Permalink
add ruby 3.3 (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxday authored Jul 5, 2024
1 parent 87e2bf6 commit b5272f6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ An ultra simple hello-world function has been written in each AWS supported runt
- `java21`
- `java21 + snapstart`
- `ruby3.2`
- `ruby3.3`

in addition to the following custom runtimes:
- `go` on `provided.al2`
Expand Down
10 changes: 10 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@
"baseImage": "public.ecr.aws/lambda/ruby:3.2"
}
},
{
"displayName": "ruby3.3",
"runtime": "ruby3.3",
"handler": "index.handler",
"path": "ruby33",
"architectures": ["x86_64", "arm64"],
"image": {
"baseImage": "public.ecr.aws/lambda/ruby:3.3"
}
},
{
"displayName": "go (prov.al2)",
"runtime": "provided.al2",
Expand Down
6 changes: 6 additions & 0 deletions s3-uploader/runtimes/ruby33/build.sh
Original file line number Diff line number Diff line change
@@ -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.rb
3 changes: 3 additions & 0 deletions s3-uploader/runtimes/ruby33/index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def handler(event:, context:)
{ statusCode: 200 }
end

0 comments on commit b5272f6

Please sign in to comment.