Buckets, objects and keys
S3 stores objects inside buckets using keys. Slashes in a key support prefix organization but do not create ordinary filesystem directories. An object includes content and metadata, and bucket configuration governs access, versioning and other features. Bucket location and naming rules need deliberate selection before creation. notes/day40.txt and site/index.html are object keys; listing prefix site/ selects matching keys, while a local directory named site is merely the source layout used before uploading those independent objects through the S3 API. Object semantics prevent applying filesystem assumptions blindly and clarify why changing an object means replacing or versioning its content rather than editing a remote block device or expecting directory permissions to control every key beneath a prefix automatically without policy configuration. Treating a slash prefix as a real protected directory overlooks object-policy scope; permissions apply through IAM and bucket policies, so define allowed key patterns explicitly instead of assuming local folder ownership transfers when files are uploaded to object storage in the cloud.
notes/day40.txt and site/index.html are object keys; listing prefix site/ selects matching keys, while a local directory named site is merely the source layout used before uploading those independent objects through the S3 API.
Object semantics prevent applying filesystem assumptions blindly and clarify why changing an object means replacing or versioning its content rather than editing a remote block device or expecting directory permissions to control every key beneath a prefix automatically without policy configuration.
Treating a slash prefix as a real protected directory overlooks object-policy scope; permissions apply through IAM and bucket policies, so define allowed key patterns explicitly instead of assuming local folder ownership transfers when files are uploaded to object storage in the cloud.