EBS vs EFS vs S3
EBS, (Elastic, Block, Store), BLOCK, storage, hai, — EK, hi, EC2, instance, se, ATTACH, hota hai, HARD, DISK, jaisa. EFS, (Elastic, File, System), FILE, storage, hai, — MULTIPLE, EC2, instances, SIMULTANEOUSLY, MOUNT, kar, sakte, HAIN.
S3, OBJECT, storage, hai, — HTTP, APIs, se, ACCESS, hota hai, unlimited, SCALE, ke, saath. EBS, EK, SINGLE, AZ, mein, hi, hota hai, JABKI, S3, aur, EFS, MULTI-AZ, hote, HAIN.
aws ec2 attach-volume --volume-id vol-12345 --instance-id i-67890 --device /dev/sdf- EBS = block storage, ek instance se attached, single-AZ
- EFS = file storage, multiple instances mount kar sakte hain
- S3 = object storage, unlimited scale, multi-AZ
EBS, (Elastic, Block, Store), BLOCK, storage, hai, — EK, hi, EC2, instance, se, ATTACH, hota hai, HARD, DISK, jaisa. EFS, (Elastic, File, System), FILE, storage, hai, — MULTIPLE, EC2, instances, SIMULTANEOUSLY, MOUNT, kar, sakte, HAIN. S3, OBJECT, storage, hai, — HTTP, APIs, se, ACCESS, hota hai, unlimited, SCALE, ke, saath.
Database, files, ke, liye, — EBS, (LOW, LATENCY, block, storage, chahiye). SHARED, CONFIG/media, files, MULTIPLE, servers, ke, beech, — EFS. STATIC, assets, backups, DATA, LAKES, — S3, (CHEAPEST, MOST, SCALABLE).
# EBS volume EC2 instance se attach karo
aws ec2 attach-volume --volume-id vol-12345 --instance-id i-67890 --device /dev/sdf