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 Antwort
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
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen