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 concern | Amazon S3 | Amazon EFS |
|---|---|---|
| Access interface | Object APIs | Mounted NFS filesystem |
| Data address | Bucket and object key | Directory and file path |
| Typical operations | Get and put objects | Open, read, write, rename |
| Permission model | IAM and bucket policies | File ownership and permissions |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.