Questions tagged [amazon-efs]

Anything related to Amazon Elastic File System (EFS). It offers an interface for creating and configuring file systems on Amazon EC2 enviroment.

Amazon Elastic File System (Amazon EFS) is a file storage service for Amazon Elastic Compute Cloud (Amazon EC2) instances. Amazon EFS is easy to use and provides a simple interface that allows you to create and configure file systems quickly and easily. With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files, so your applications have the storage they need, when they need it.

582 questions
9
votes
2 answers

EBS vs EFS read and write latencies

I am storing users' code in file system, at present EBS in AWS. I am looking improving the availability and want to reduce the chances of outage due to EBS going down. EFS appears to be a reasonable option. I understand EFS will be slower than EBS…
8
votes
3 answers

Can we mount EFS on AWS ECS docker container?

I have an ECS instance on which my docker containers are running. I want to mount EFS on docker container which is running on ECS. Is it possible then how? I am able to mount EFS on ECS instance but not on docker container which is running on…
mahendra rathod
  • 1,438
  • 2
  • 15
  • 23
8
votes
2 answers

Degrading Performance of AWS EFS

We have hosted our wordpress site on aws ec2 with autoscaling and EFS.But all of a sudden the PermittedThroughput became near Zero bytes and BurstCreditBalance was becoming less day by day(from 2TB to few Mbs!). EFS size was only around 2GB!. We are…
jobycxa
  • 321
  • 1
  • 3
  • 6
7
votes
2 answers

lambda + efs - mounting vs access point

I am trying to use aws lambda and efs together so I can perform operations that exceed the default lambda storage limit of 500mb. I am confused what the difference is between Local mount path and Access point. Is the local mount path a term used to…
Ryan-Neal Mes
  • 6,003
  • 7
  • 52
  • 77
7
votes
2 answers

Is it possible to use AWS EFS access points to mount a kubernetes persistent volume in EKS?

First of all to put some context on that question. I have an EKS cluster with version >= 1.15 The EFS - EKS security group / mount target etc. are working properly The CSI driver for EFS in EKS is installed and work as expected I have deployed a…
7
votes
3 answers

How to create EFS in Multi-AZ with Terraform

I have launched two EC2 instances in two availability zones and I need to mount the EFS in both the instances using Terraform. resource "aws_efs_file_system" "magento-efs" { creation_token = "efs-demo" performance_mode = "generalPurpose" …
7
votes
2 answers

Is it safe to use flock on AWS EFS to emulate a critical section?

According to the docs, AWS EFS (Amazon Elastic File System) supports file locking: Amazon EFS provides a file system interface and file system access semantics (such as strong data consistency and file locking). On a local file system (e.g.,…
Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239
6
votes
0 answers

100GB read only random access SQLite file on AWS EFS (or network share) with multiple readers

SQLite is not designed to be accessed from EFS (or a network share). This due to performance and data integrity. In this case, the used tools require sqlite and this cannot be changed in the near future. This is what we have: 1..n dockers that…
Jro
  • 135
  • 9
6
votes
2 answers

"MountVolume.SetUp failed for volume" with EKS and EFS

I'm trying to set up EFS with EKS, but when I deploy my pod, I get errors like MountVolume.SetUp failed for volume "efs-pv3" : rpc error: code = DeadlineExceeded desc = context deadline exceeded in my events. What is the cause of this?
Phyxx
  • 15,730
  • 13
  • 73
  • 112
6
votes
1 answer

How do I create a folder on EFS?

I set up an ECS Cluster with Terraform. Everything works great, but I have a few questions about it. 1. As far as I understood, an EFS volume doesn't need to be mounted to ECS instances. AWS allows us to mount an EFS volume folder directly to a…
Samuel
  • 97
  • 3
  • 8
6
votes
4 answers

Auto mounting EFS on EC2 instance

I created an EC2 instance and an EFS, and was able to mount EFS properly on the instance. I need to auto mount in case the server is rebooted. According to the documentation, i do that following in /etc/fstab fs-xxxxxxxx:/ /mnt/efs efs…
5
votes
1 answer

Is it fundamentally wrong to use volumeMounts.subPath in a production setup?

I am able to mount different directories to the same container at different mount points using volumeMounts.subPath attribute. Is it OK to use this in production environment? I am using AWS EFS as my persistent storage. This doc says it is not…
sandy
  • 53
  • 4
5
votes
1 answer

Terraform: How to mount EFS access point to EC2?

My goal is to install some python packages on the EFS and connect it to my Lambda. Now I'm at the point were I mount EFS to the EC2 instance and install certain libraries, like numpy. The whole infrastructure is defined in Terraform. After…
5
votes
2 answers

AWS EFS - lifecycle rule to delete old files

I'm using EFS I want to set up some form of lifecycle rule to delete all files that are in the EFS for over 10 days (or preferably, but not necessary, if they were not accessed for 10 days) From the configuration, it seems not to be possible. Is…
user972014
  • 3,296
  • 6
  • 49
  • 89
5
votes
2 answers

I can't download file from S3 to EFS using Lambda

I connected the Lambda to EFS, and I want to download small file from S3 to the EFS using Lambda. I connected the Lambda function to file system, and added access point with permissions 777. I have this small python function in Lambda to download to…
1
2
3
38 39