Amazon Elastic File System (EFS) is a simple and scalable file system for Linux-based workloads. This guide will show you how to create a new file system through the AWS console.
Create Your File System
On the AWS Management Console select EFS. If this is the first time you have created an EFS file system you will be greeted with the usual big blue button. Click on this to get started.
Configure File System Access
The first thing you need to do is select the VPC that you want your file system to be in. The must be the same VPC as the instances that will use the file system.
Next, specify which subnets to create mount targets in and select the security group to use for each mount target. I’ll just leave it with the VPC default, but you can create a separate security group if you like. The port used for EFS in 2049.
You can also define the IP address for each mount target.
Configure Optional Settings
The first optional setting is to add tags. I will just set a name but you may want to add a few more.
Next, you have the option to enable lifecycle management. This option can help you save costs by automatically moving files to the cheaper Infrequently Accessed storage tier if they have not been accessed after 30 days.
The next option is the choose which throughput mode. We will stick with the recommended mode of Bursting.
Performance mode is the next option and once again we will stick with the recommended option of General Purpose.
The final optional setting is whether to enable the encryption of data at rest on the file system. To help secure our data we will tick this and just use the default KMS master key provided. You can enter a different KMS key here if you wish.
Finally, review the settings for your filesystem. If you are happy, click the Create File System button and your new elastic file system will start to be created.
Once created, you will be able to see the details of your new file system in the console. It’s now ready to be used.