EC2 Instance Storage — EBS, EFS and Instance Store
Let’s see about storage option available for AWS ec2 instances and outline their features.
Elastic Block Store (EBS)

EBS attach to EC2
An EBS volume is a network drive which can attach to the ec2 instances while they run. Easy to use and high performance. Can be detached from an EC2 instance and attached to another one quickly.
It uses the network to communicate the instance so there might be a bit of latency.
They are bound to a specific availability zone. EBS Volume in us-east-1a can not be attached to us-east-1b. But you can copy a snapshot and use it across AZs or regions.
Free tier — 30 GB of free EBS for month of type General Purpose (SSD)
It allows your instances to persist data, even after instance termination. By default, the root EBS volume is deleted at instance termination. But this can disable. By default, any other attached EBS volume is not deleted and this feature can enable to delete the volume.
Six type of EBS volumes.
gp2 / gp3 (SSD): General purpose SSD volume, balances price and performance
io1 / io2 (SSD): Highest-performance SSD volume, low-latency or high-throughput
st1 (HDD): Low cost HDD volume, frequently accessed
sc1 (HDD): Lowest cost HDD volume, less frequently accessed
Also allows to increase the capacity of the drive over time.
EC2 Instance Store
Since EBS communicate with instance through network, there might be a latency. If you need a high-performance hardware disk, EC2 Instance Store is a the best option.
Good option for store cache or temporary content.
EC2 Instance Store lose their storage when instance stopped or hardware fails.
If you need high availability of your content, then use backups and replication.
Elastic File System (EFS)

EFS attach to EC2 across AZs
Managed NFS (network file system) that can be mounted on many EC2 instances. Can attach number of ec2 instances across AZs.
Highly available, scalable, expensive than EBS, pay per use.
EFS use for content management, web serving and data sharing.
You need security groups to access control EFS. Encryption is available at the rest using KMS.
Only contemptible with Linux AMI.
EFS storage classes
standard — frequently accessed files
Infrequent access (EFS-IA) — lower price to store
EFS One Zone -IA — great for development environments