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
5
votes
1 answer

How to use Same EFS for mounting multiple directories in Kubernetes deployment

I am trying to find a solution to make use of the same Amazon EFS for mounting multiple directories in the Kubernetes deployment. Here is my use case I have an application named app1 that needs to persist a directory named "/opt/templates" to EFS I…
5
votes
2 answers

Mounting EFS in EKS cluster: example deployment fails

I am currently trying to create an EFS for use within an EKS cluster. I've followed all the instructions, and everything seems to be working for the most part. However, when trying to apply the multiple_pods example deployment from here, the pods…
5
votes
2 answers

AWS efs mount permission denied

I am trying to mount an efs to an ec2 instance. I first was timing out, then created a new security group for my vpc with my ec2 instance as the source and added this to my efs. I am now getting a permission denied. I read that I needed to "check…
Jeff Tilton
  • 1,256
  • 1
  • 14
  • 28
5
votes
3 answers

How to use Amazon EFS with EKS in Terraform

So far I have 2 directories: aws/ k8s/ Inside aws/ are .tf files describing a VPC, networking, security groups, IAM roles, EKS cluster, EKS node group, and a few EFS mounts. These are all using the AWS provider, the state in stored in S3. Then in…
5
votes
1 answer

AWS EFS: Max number of files allowed in a folder

I am trying to find out the maximum number of files I can store in a folder when using the AWS EFS file system. The total number of files I am interested in is around 2.5 million, and each file's size is about 10KB - 20KB. I've found this relevant…
linuxfever
  • 3,763
  • 2
  • 19
  • 43
5
votes
2 answers

Needing multiple counts on a Terraform resource?

I have the following Terraform resource which is intended to create a separate encrypted EFS volume per warehouse, and then create mount targets in two subnets for each: resource "aws_efs_file_system" "efs-data-share" { count =…
Rome_Leader
  • 2,518
  • 9
  • 42
  • 73
5
votes
1 answer

How can I create a custom metric watching EFS metered size in AWS Cloudwatch?

Title pretty much says it all - Since the EFS metered size (usage) ist not a metric that I can use in Cloudwatch, I need to create a custom metric watching the last metered file size in EFS. Is there any possiblity to do so? Or is there maybe a…
David
  • 51
  • 2
5
votes
3 answers

Facing an issue with attaching EFS volume to Kubernetes pods

I am running my docker containers with the help of kubernetes cluster on AWS EKS. Two of my docker containers are using shared volume and both of these containers are running inside two different pods. So I want a common volume which can be used by…
5
votes
0 answers

Stale file handle error when deleting files in EFS

I am getting this error when I want to delete files from Amazon EFS: java.io.UncheckedIOException: java.nio.file.FileSystemException: /OutlookAttachments: Stale file handle at…
cojeca
  • 67
  • 1
  • 1
  • 7
5
votes
1 answer

ECS with persistent data on EFS or EBS with CloudFormation

I am looking for some expert with AWS to help me with this thing. I've spent almost one week trying to deploy my backend docker image to AWS with no 100% of the desired behaviour. Firstly I was suggested to try out the new Fargate service AWS…
5
votes
1 answer

MongoDB Docker Container on AWS ECS using EFS

Is it recommended to have multiple MongoDB Docker containers on the AWS Elastic Container Service (ECS) that share the same AWS Elastic File System (EFS)? Why? Why not?
Justin
  • 2,224
  • 2
  • 22
  • 28
4
votes
0 answers

Database persistence in ECS Fargate

We are running a MongoDB container in ECS Fargate. The ECS services starts up fine and database is accessible. But how do I make it persistent as we all know that container storage is ephemeral? I have tried to mount efs file system following AWS…
4
votes
2 answers

Unable to access EFS from ECS Fargate task

Trying to launch a Fargate task that uses an EFS Volume. When starting the task from ECS Console, I'm getting this error : ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: Failed to resolve…
user19205267
  • 71
  • 1
  • 6
4
votes
1 answer

Is it possible to use SQLite in EFS reliably?

Is it possible to use SQLite in AWS EFS safely? In my readings trying to determine if this is viable there appears to be some allusions that it should be doable since AWS EFS implemented NFSv4 back in 2017. In practice I am having no luck getting…
4
votes
1 answer

Mount EFS to Lambda Container

I have a task that I would like to run inside a container on AWS Lambda. I know, that when using the regular function, not a container, it is possible to mount a persistent EFS storage to /mnt/. Is it possible to access this location from the…
1 2
3
38 39