Skip to content

Java - Use library from EFS Mount #285

Open
@NxP4Code

Description

@NxP4Code

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions