Skip to content

Objects in S3 πŸ“‚ ​

Alright noob, you’ve got your shiny new bucket πŸͺ£.
But an empty bucket is boring β€” time to put stuff inside it!
That β€œstuff” is called an Object in S3.

What is an Object? πŸ€” ​

  • An object = a single file you store in S3.
  • Each object includes:
    • The actual data (file content)
    • A key (the file name + path)
    • Metadata (extra info about the file, like tags or type)

Example:

  • Object Key: catpics/cute-fluffy.png
  • Metadata: Content-Type: image/png
  • Data: 🐱 β†’ your cat meme

Keys: The Fancy Names πŸ”‘ ​

  • An object’s key is like its full path.
  • Example: project1/docs/resume.pdf
  • S3 pretends these are folders, but they’re actually part of the key.

Think of it as:

Object Key = GPS coordinates for your file in the cloud 🌍

Metadata: The Secret Sauce πŸ“ ​

Every object has metadata = info about the file.

Types of metadata:

  1. System metadata β†’ managed by AWS (like file size, last modified date)
  2. User metadata β†’ you can add custom tags (like Owner: Kahnu, Project: DeveloperNoob)

Object Size Rules πŸ“ ​

  • Minimum: 0 bytes (yes, you can store an empty file πŸ€·β€β™‚οΈ)
  • Maximum: 5 TB (yep, terabytes β€” store a whole Netflix series if you want πŸ“Ί)
  • Upload limit per request: 5 GB, but for bigger files use multipart upload.

Managing Objects πŸ› οΈ ​

You can:

  • Upload β†’ from AWS Console, CLI, or SDKs
  • Download β†’ grab files back to your machine
  • Delete β†’ yeet the file into oblivion πŸ—‘οΈ
  • Share β†’ generate a public URL (careful: don’t leak secrets 🀐)

Example: Uploading a Meme 😎 ​

  1. Open bucket: kahnu-memes
  2. Upload file: spiderman-pointing.jpg
  3. Object Key: memes/spiderman-pointing.jpg
  4. Share URL with friends:

Built by noobs, for noobs, with love πŸ’»β€οΈ