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 个月前249 查看次数
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
已回答 1 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则