EFS Flashcards
Elastic File System (EFS)
File storage service for EC2 instances
storage capacity is elastic, grows and shrinks automatically as files are added and removed
Applications have the storage needed, when needed
How do you pay for EFS?
Pay for the storage you use
no pre-provisioning
not like EBS where you create a xGb volume
What version of NFS does EFS use?
NFS v4
How big does EFS scale?
to petabytes
How does AWS store EFS data?
across multiple Availability Zones in a region
is EFS block based?
Yes, EFS is block based
so you can share files with EC2 instances
not object based like S3
What consistency model does EFS have?
read after write
Process to create an EFS
Choose VPC
Create mount target (select which AZ you want mount target in. AWS recommends one mount target in each AZ so EC2 instances across your VPC can access the file system). Choose subnet and security group
Add tags
Review and create
Use case for EFS
use as a file server
centralized repository for multiple EC2 instances
Permissions that you can use in EFS
user level permissions
directory level permissions
How to mount EFS volume to EC2 instance
Create a new directory on your EC2 instance, such as “efs”.
sudo mkdir efs
Mount your file system using the DNS name. Mounting considerations
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-19d92660.efs.us-east-2.amazonaws.com:/ efs