-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve aws-lambda.adoc regarding Java requirements and SSL #45721
base: main
Are you sure you want to change the base?
Conversation
@zakkak could you have a look at the changes I made to the native + SSL part? |
🎊 PR Preview 47a1a8c has been successfully built and deployed to https://quarkus-pr-main-45721-preview.surge.sh/version/main/guides/
|
Status for workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsmet the changes look good to me, but when I try it locally it fails with:
❯ sam local invoke --template target/sam.native.yaml --event payload.json
No current session found, using default AWS::AccountId
Invoking not.used.in.provided.runtime (provided)
Decompressing /tmp/lambda/target/function.zip
Unknown 404 - Unable to check if base image is current.
Possible incompatible Docker engine clone employed. Consider `--skip-pull-image` for improved
speed, the tradeoff being not running the latest image.
Removing rapid images for repo public.ecr.aws/sam/emulation-provided
Building image........................
Using local image: public.ecr.aws/lambda/provided:alami-rapid-x86_64.
Mounting /tmp/tmpdpycsvel as /var/task:ro,delegated, inside runtime container
WARN[0673] Requested oom_score_adj=0 is lower than the current one, changing to 100
START RequestId: a8cbd9f6-9bba-4e27-b4f4-3e4c00cdd73e Version: $LATEST
21 Jan 2025 09:18:57,698 [ERROR] (rapid) Init failed error=fork/exec /var/task/bootstrap: permission denied InvokeID=
21 Jan 2025 09:18:57,698 [ERROR] (rapid) Invoke failed error=fork/exec /var/task/bootstrap: permission denied InvokeID=048917ac-4587-44bb-b418-4a185a8bff82
21 Jan 2025 09:18:57,698 [ERROR] (rapid) Invoke DONE failed: Runtime.InvalidEntrypoint
|
||
1. A custom `bootstrap` script | ||
2. `libsunec.so` must be added to `function.zip` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the generated boostrap-example.sh
still referes to libsunec.so
quarkus/extensions/amazon-lambda/common-deployment/src/main/resources/lambda/bootstrap-example.sh
Line 10 in 5534ed1
# Make sure to copy Graal's libsunec.o and cacerts into src/main/zip.native/ |
Yeah tbh I didn't try, I just made the doc more accurate. Dunno how to properly fix this thing. |
Unfortunately I am not knowledgeable enough on the topic either, so we will need someone else to review (and possibly further update the docs). |
Yeah, same here. I thought it could be an easy win but apparently there's a lot more to fix. Bummer. Gonna mark as draft in case someone is interested in pursuing this. |
Fixes #45616 (hopefully)