Use this when using metadata or tags on objects.
Metadata
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.
1. Metadata: system (size, type, ETag) and user (x-amz-meta-*).
2. Tags for lifecycle and access policies.
3. Metadata changes require copy-in-place.
4. Content-Type matters for web serving.
5. Keep metadata small.
object → metadata/tags → policies
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Storing secrets in metadata.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- System metadata includes size, ETag and content type.
- User metadata and tags are key-value pairs.
- Lifecycle and policies can use tags.
aws s3api head-object --bucket <b> --key <k>— user and system metadataaws s3api get-object-tagging --bucket <b> --key <k>— tagsaws s3 cp ... --metadata key=value— set metadata
ReferenceHow it works1 section · depth on demand
Reference
| Header | Example |
|---|---|
Content-Type | application/json |
Cache-Control | max-age=3600 |
x-amz-meta-owner | Custom metadata |
x-amz-server-side-encryption | aws:kms |
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
System metadata (Content-Type, Content-Length, ETag, Last-Modified) is managed by the store; user metadata (x-amz-meta-*) is set by the client at upload and cannot be edited in place — changing it rewrites the object (copy onto itself). Metadata is not indexed for search on plain S3; use tags or an external index.
Reference
aws s3api head-object --bucket corp-backups --key db.dump
Metadata is set at upload; changing it requires copying the object onto itself. Use tags (put-object-tagging) for lifecycle rules and access policies.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Object Storage → Metadata. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.snia.org/tech_activities/standards/curr_standards/cdmi · confidence 94%