Pcornel
Storage · Object Storage

Object Keys

Cheat sheet · https://pcornel.dk/topic.php?topic=4165

Back to the Topic

Answer

An object key is the unique name of an object inside a bucket, such as backups/2026/db.tar.gz. Slashes only look like folders; the namespace is flat, and prefixes are used for listing and policies.

Remember

  • Keys are unique within a bucket.
  • Slashes are only part of the name.
  • Prefixes are used for listing and policies.

First checks

  • aws s3api list-objects-v2 --bucket <b> --prefix logs/2026/ — list by prefix
  • aws s3 ls s3://<b>/<prefix>/ — browse
  • aws s3api list-objects-v2 --bucket <b> --delimiter / — top-level "folders"

Verify in this order

key → prefix → listing/policy

Where it usually breaks

First mismatch in DNS/TLS → authentication/signing → bucket/container policy → object key/version → gateway → backend placement → GET/HEAD read-back; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4165

Confirmation

Confirm action

Continue?