AWS Java SDK with EFS

0

Hi, is there a way for the AWS Java SDK to access files stored in Amazon EFS? Are there any examples of this being done? I would like to use the AWS Java SDK to access files in EFS inside of a Lambda function. Thank you.

1개 답변
1

Hello,

EFS is a file system that is going to be used to connect EC2 instances and on-prem servers it. If you are using an application that does not run on EC2 instances but rather on other devices, such as a mobile application, it is not a good idea to store data in EFS, however if you are running code on the EC2 instances to retrieve some data you first of all have to mount the EFS file system to the EC2 Instance for it to get the data. You also have to ensure that your instance has the right permissions to access data in EFS. To use the SDK to access data on EFS, you can use the EfsClient.

https://sdk.amazonaws.com/java/api/2.1.3/software/amazon/awssdk/services/efs/EfsClient.html

profile picture
Julian
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠