We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Private Bucket

Our tubely bucket is public (remember how we unchecked "Block all public access" in the bucket settings when we made it?).

Public buckets are useful when you want to serve public content directly from them, like user profile pictures, for example. However, you should only use them when you're certain all the content should be public, and you're okay with the risks of anyone on the internet using the bandwidth you pay AWS for to download your assets over and over again...

A good use case for a public bucket might be:

  • Users' profile pictures
  • Public certificates of completion (we do this for Boot.dev!)
  • Dynamically generated images for social sharing (like the link previews you see on Twitter)

While a private bucket might contain:

  • A user's privately uploaded documents
  • A user's draft content that they haven't published yet
  • The org's video content that's only available to paying customers

Assignment

Run and submit the CLI tests.

Don't delete the public bucket yet. We're going to need it in an upcoming lesson.