-
Notifications
You must be signed in to change notification settings - Fork 33
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
GraalVM sample for a restful spring application. #783
Comments
Hi @emmanuelU17, If you prefer to join a direct call with us, please reach out via your AWS account team (or using https://aws.amazon.com/contact-us/sales-support/ in case you don't know). |
Hi @deki, |
Thanks for sharing your repo. The way you've implemented it is actually not supported right now, but it's already being worked on (see aws/serverless-java-container#335 and aws/serverless-java-container#739). To get it running today you'd need to follow our sample https://github.com/aws-samples/aws-lambda-java-workshop/tree/main/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm and implement a Spring Cloud Function Handler. I'll keep this issue open until an updated sample is available (likely beginning of next month). |
Ohh thank you for the clarification. I been at this for some days now to the extent I almost started questioning myself. I'll definitely be on the lookout for see aws/serverless-java-container#335 and aws/serverless-java-container#739 and this issue. Thank you again for the clarification. |
Looks like https://github.com/aws/serverless-java-container/issues/335 has solved this issue but before it is closed I got a quick question. What if I want to my source code to be saved in ECR instead of S3. For one
|
You can use ECR but that's a different deployment model. See https://docs.aws.amazon.com/lambda/latest/dg/images-create.html for more details. |
Hey, I was able to deploy my source code based on the sample repo. I would like to try a different way of deployment to lambda via ECR. I understand because I am using a custom runtime, I'll have to define a bootstrap file (which I did in the root folder) which lambda can use to invoke my bytecode. In the root of my project, I have a Dockerfile.ecr where the entry point is the bootstrap file. After I successfully deployed to ecr and then manually upload the image to lambda function for testing, I get an error where there is not communication between. If you do not mind, can you take a look at my repo and guide me on what I am doing wrong. Thank you again |
Never mind I got it figured out. Realized I was missing copying bytecode into |
Hey I have been trying to convert and deploy software/unicorn-store-spring to graalvm native image to lambda but I can't figure it out yet. I have been at it for some days now so if a sample can be made. Thank you in advance.
The text was updated successfully, but these errors were encountered: