Install EFS CSI driver into your AWS EKS cluster — Kubernetes — Infrastructure as Code

When you are starting to use Kubernetes you will create persistent volume as a gp2 storage class, the downside of it will be the data are placed on a single Kubernetes node and it's not recommended for high availability applications there need persistent storage like database services.
So that is why it's a good thing to start using AWS EFS filesystem and mount it to your needed application, remember always to think about whether you need persistent volume or whether it will be okay to store your data for low-cost S3 storage, AWS EFS can be a high cost if you don’t take care.
Setup EFS filesystem and security group
What you need first is creating a security group there allows access on port 2049 into in/out to the EFS file system, then it's important to create the EFS Filesysten and add the access point to it before it is available to use.







