Skip to content
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

Java - Use library from EFS Mount #285

Open
NxP4Code opened this issue Jun 4, 2021 · 1 comment
Open

Java - Use library from EFS Mount #285

NxP4Code opened this issue Jun 4, 2021 · 1 comment
Labels

Comments

@NxP4Code
Copy link

NxP4Code commented Jun 4, 2021

I have a java based AWS lambda function running with a fat jar using layer. I am planning to put all dependencies in my EFS file store in one jar, and add jar in the classpath.

I have tried setting the lambda environment variable as below, but the lambda function doesn't find class files included in the EFS Jar file.

set environment variable CLASSPATH = /mnt/efs/libs/*
set environment variable JAVA_OPTION = -classpath /mnt/efs/libs/*

Any pointers on how to configure classpath pointing to EFS.

@amit-jadhav
Copy link

Were you able to solve this issue?

@mwunderl mwunderl changed the title AWS Lambda Function in Java - Use library from EFS Mount Java - Use library from EFS Mount Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants