Pcornel
Storage · Object Storage

Metadata

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

Back to the Topic

Answer

Object metadata is key-value information stored with each object — system data like size, ETag and content type, plus user-defined tags — used for search, policies and lifecycle rules.

Remember

  • System metadata includes size, ETag and content type.
  • User metadata and tags are key-value pairs.
  • Lifecycle and policies can use tags.

First checks

  • aws s3api head-object --bucket <b> --key <k> — user and system metadata
  • aws s3api get-object-tagging --bucket <b> --key <k> — tags
  • aws s3 cp ... --metadata key=value — set metadata

Verify in this order

object → metadata/tags → policies

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=4164

Confirmation

Confirm action

Continue?