ExitAmazon S3 and Amazon EFS: object storage versus shared files1 / 9
Explanation

Choose the access model, not the filename

How object API access differs from shared filesystem access, and which application requirements favor each service. · associate

Amazon S3 stores objects in buckets. An application identifies an object by its bucket and key, then uses API requests such as GetObject and PutObject, usually through an SDK. This lesson uses S3 general purpose buckets: a key such as datasets/train.csv is an object name, not a file inside a real directory hierarchy.

Amazon EFS provides a shared filesystem that Linux clients mount using NFS. Applications use paths and ordinary file operations such as opening, reading, writing, and renaming files. Multiple clients can mount the same filesystem and work with the same files.

The important distinction is the application interface. Both services can store CSV files, images, or model artifacts. S3 does not natively provide POSIX filesystem semantics merely because an object key looks like a path; EFS provides directories, file permissions, and file operations.

Application concernAmazon S3Amazon EFS
Access interfaceObject APIsMounted NFS filesystem
Data addressBucket and object keyDirectory and file path
Typical operationsGet and put objectsOpen, read, write, rename
Permission modelIAM and bucket policiesFile ownership and permissions

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.