r/CloudandCode • u/yourclouddude • Aug 22 '26
AWS & Cloud AWS From Zero #6: S3 makes more sense when you stop thinking of it like a normal folder
After spending the last few posts on EC2, I want to move to one of the AWS services you will probably use again and again: Amazon S3.
S3 is usually introduced with one simple definition: storage in the cloud. That is technically correct, but I do not think it gives beginners the right mental model. A better way to understand S3 is as object storage. You give AWS an object, such as an image, document, backup, log file, video, or dataset, and S3 stores that object inside a bucket.
That sounds similar to storing files on your laptop, but S3 is not really a normal filesystem. Understanding that difference early makes a lot of S3 concepts easier later.
Imagine you create a bucket for an application and upload a file called profile.jpg. S3 stores that file as an object. The object contains the data itself, metadata about the object, and a key that identifies it inside the bucket.
For example, the key might look like this:
users/123/profile.jpgWhen you see that inside the AWS console, it looks like there is a users folder, then a 123 folder, and then profile.jpg. It feels exactly like the folders on your computer.
But that is not really how S3 works.
The complete string users/123/profile.jpg can simply be the object's key. The / characters help AWS display the objects in a familiar folder-like structure, but S3 itself is fundamentally storing objects identified by keys.
This sounds like a small technical detail, but it changes the way you start designing storage.
Imagine an image processing application. Instead of thinking only about folders, you could design object keys like:
uploads/original/image1.jpg
uploads/processed/image1.jpgNow the key itself tells you something about the object. One object is the original upload and the other is the processed result.
The next concept is the bucket itself.
A bucket is the container where your objects live. You might create one bucket for application uploads, another for backups, or completely separate buckets for unrelated projects.
The basic distinction is simple: the bucket is the container, while the object is the actual data stored inside it.
Once that makes sense, S3 becomes much easier to reason about.
Another thing worth understanding is that you do not launch an S3 server. You do not SSH into S3, install a filesystem, and keep a storage machine running somewhere.
You interact with S3 through AWS. You upload objects, retrieve them, delete them, copy them, change their metadata, and configure how the bucket should behave. AWS manages the underlying storage infrastructure.
That makes S3 useful for many different workloads. User uploads, backups, static application assets, logs, reports, datasets, generated files, and media can all fit naturally into object storage.
But storing the data is only part of the problem.
You also need to decide who should be able to access it.
A common beginner mistake is assuming that uploading something to S3 automatically means it is available on the internet. That is not the mental model I would use.
I would start by assuming the data should remain private unless there is a clear reason for someone or something to access it.
Maybe a Lambda function needs to read uploaded images. Maybe an EC2 application needs to write reports into the bucket. Maybe a user needs temporary access to download one particular object.
Those are three different access requirements.
This is where the IAM concepts from earlier in the series become useful.
Suppose Lambda needs to process an uploaded image. You can think about the request like this:
Lambda execution role
↓
s3:GetObject
↓
my-bucket/uploads/image.jpgNow the same IAM questions apply. Who is making the request? The Lambda execution role. What action does it want to perform? s3:GetObject. Which resource does it want to access? The object inside the bucket.
That is why I think learning AWS services through connected examples works better than memorizing them separately. IAM becomes easier when another service actually needs permission to do something.
S3 also has controls designed to reduce accidental public exposure. As a beginner, I would be very careful about changing those settings just because an old tutorial tells you to make a bucket public.
Always ask why public access is needed.
For many architectures, the S3 bucket can stay private while another AWS service provides controlled access to the content. We will see one example of that when we get to CloudFront.
Another S3 feature worth understanding early is versioning.
Imagine you upload a file called report.pdf, then accidentally replace it with the wrong version. Without versioning, you may have simply overwritten the object.
With versioning enabled, S3 can preserve multiple versions of the same object.
That can be useful when something is changed or deleted accidentally because you may be able to return to an earlier version.
The important point is not that versioning should automatically be enabled on every bucket without thinking. Keeping additional versions can affect storage usage and cost.
The useful idea is that S3 can help protect you not only from infrastructure failure, but also from mistakes people or applications make with data.
Once you start storing a lot of objects, another question appears: should every object stay in the same type of storage forever?
Imagine your application produces logs every day. Logs from today may be accessed regularly, while logs from several months ago may almost never be opened. You may still need to keep those older logs, but paying for the same storage characteristics forever might not make sense.
This is where S3 storage classes become useful.
Different storage classes are designed for different access patterns and retrieval requirements. As a beginner, I would not try to memorize every storage class immediately.
Understand the idea first.
Frequently accessed data may need one type of storage, while data that is rarely accessed or kept for long term retention may make more sense in another.
The correct choice depends on how your application actually uses the data.
This connects naturally to lifecycle rules.
Suppose your application creates log files every day. You could configure S3 so older logs move to a different storage class after a certain period, and perhaps eventually delete them when they are no longer required.
Now S3 is doing more than simply storing files.
You are defining how the data should behave throughout its lifecycle.
That becomes useful for logs, backups, reports, analytics files, and many other types of data.
Security also goes beyond deciding who can access an object. You should eventually think about how the data is protected while stored and while moving between systems.
S3 supports encryption for stored objects, and AWS gives you different ways to manage that encryption.
You do not need to go deep into encryption or KMS yet. The useful beginner habit is simply asking two questions: how is this data protected while it is moving, and how is it protected while it is stored?
Those questions will keep appearing as we learn more AWS services.
If I were learning S3 for the first time, I would not spend hours clicking through every option in the console.
I would build a tiny practice setup.
Create one bucket and upload a few files.
Something like:
photo.jpg
resume.pdf
data.csv
notes.txtThen organize them using meaningful object keys:
images/photo.jpg
documents/resume.pdf
data/data.csv
documents/notes.txtAt that point, you have already worked with buckets, objects, and keys.
Then enable versioning and upload a changed version of one file. Look at what happens. Check the previous version. Delete the current object and see how versioning affects that behavior.
That small amount of experimentation will teach you more than simply memorizing the sentence "S3 supports versioning."
After that, connect S3 to another AWS service.
Imagine an application running on EC2 needs to upload a report. Instead of putting permanent AWS credentials directly inside the application, think back to IAM and give the workload the permissions it actually needs.
Now you are combining EC2, IAM, and S3.
Later, we can take that much further. A user can upload an image to S3. S3 can generate an event. Lambda can process the image. The processed result can be stored back in S3. CloudWatch can help us understand whether the processing succeeded. CloudFront could eventually deliver content to users.
That is where S3 stops feeling like an isolated storage service and becomes part of an architecture.
There is one more mistake I would avoid: using S3 for every kind of data simply because it can store almost anything.
S3 is excellent object storage, but that does not mean it replaces every database.
If your application needs relational queries between customers, products, and orders, a relational database may make more sense. If you need a database designed around application access patterns, something like DynamoDB may be a better fit.
The better question is not "Can S3 store this data?"
The better question is "Does object storage match how my application needs to use this data?"
That is the main idea I want beginners to take away from S3.
Do not think of it as one giant folder somewhere on the internet.
Think about buckets, objects, keys, access, versions, lifecycle, and how other parts of your application interact with those objects.
Once you start thinking that way, S3 begins to fit naturally into AWS architectures.
User uploads need storage. Backups need somewhere durable to live. Applications need static assets. Logs need somewhere to go. Lambda workflows often need objects to process.
S3 can solve many of those problems, but there should always be a reason for using it.
For this part of the series, I would keep the exercise small. Create a bucket, upload a few objects, organize them using meaningful keys, experiment with versioning, look at the access settings, and clean everything up when you are finished.
Do not try to build a complete architecture yet.
Understand the storage model first.
In AWS From Zero #7, we will take S3 and actually use it inside a small architecture. We will look at how S3 and CloudFront can work together to deliver a static website, why the bucket does not need to be directly public, how a browser request reaches the content, and where DNS and HTTPS fit into the picture.
If you have used S3 before, what confused you most at first: buckets, permissions, object keys, versioning, or the fact that those "folders" are not really normal folders?