AWS EC2: Instance Storage
Once an EC2 instance is running, it needs somewhere to put data. AWS gives you three kinds of disk to attach to a VM, and each one behaves very differently. The options Type Storage Lifecycle Scope EBS Block, network-attached Persistent One AZ Instance Store Block, physically on the host Ephemeral — lost on stop/terminate One host EFS File (NFS), network share Persistent Multi-AZ Mental model EC2 ──attaches──> EBS volume (its own dedicated disk, persistent) EC2 ──has──────> Instance Store (host's physical NVMe, ephemeral) EC2 ──mounts───> EFS (network file share, many EC2s share it) In plain terms:...