Skip to main content

Command Palette

Search for a command to run...

AWS S3 Basics for Beginners

Updated
6 min read
V
I am aspiring Cloud engineer, currently working as IT support engineer and have a experience of 2 years in D365 CRM support background.

Introduction

In the previous articles, we explored AWS networking concepts like:

  • VPC

  • Subnets

  • Internet Gateway

  • Security Groups

  • Route 53

Now, let's move to one of the most popular AWS services:

Amazon S3(Simple Storage Service)

Amazon S3 is one of the easiest AWS services to learn and one of the most widely used services in real world applications.

Almost every application stores some kind of data:

  • Images

  • Videos

  • Documents

  • Log files

  • Backups

  • Static Websites

Amazon S3 helps us store and retrieve these files securely from anywhere in the world.

In this article, we will understand:

  • What Amazon S3 is

  • Buckets and Objects

  • Benefits of S3

  • Storage Classes

  • Versioning

  • Basic Security hosting overview


Why do we Need Storage?

Imagine you are running an online photo-sharing application.

Users upload:

  • Profile pictures

  • Photos

  • Videos

Where should these files be stored?

Keeping them directly inside the application servers is not good idea because:

  • Storage is limited

  • Scaling becomes difficult

  • Replacing servers may cause data loss

This is where Amazon S3 helps.


What is Amazon S3?

Amazon S3 stands for:

Simple Storage Service

It is a cloud based object storage provided by AWS.

S3 allows us to:

  • Store data

  • Retrieve data

  • Manage data

from anywhere using the internet.

Amazon S3 is designed to be:

  • Scalable

  • Highly available

  • Secure

  • Durable

  • Cost-effective


Real-World Example for S3

Think of Amazon S3 as a digital warehouse.

Suppose you own an e-commerce company.

Inside your warehouse, you store:

  • Product images

  • Invoices

  • Customer documents

  • Videos

Similarly, Amazon S3 stores digital files safely in the cloud.


Buckets and Objects

Amazon S3 stores data using 2 concepts:

Bucket:

A bucket is a container used to store files. Think of a bucket like a folder.

Example:

company-documents
customer-images
application-logs

Bucket names must be globally unique.

Object

Anything stored inside a bucket is called an Object.

Example:

invoice.pdf
profile.jpg
backup.zip
video.mp4

Objects can contain:

  • Images

  • Videos

  • HTML files

  • CSV files

  • JSON files

  • Log files

Almost any file type can be stored in S3.


Real-life Example for Bucket and Object

Imagine

Cupboard(Bucket)
      ↓
Files and Documents(Objects)

Similarly:

S3 Bucket
   ↓
Objects

Benefits of Amazon S3

A. Highly Durability

Amazon S3 provides is famous for its durability.

AWS provides: 99.99999999999% durability.

This is often called:

Eleven 9's of Durability

AWS automatically keeps multiple copies of your data to prevent data loss.

B. High Availability

S3 is designed to remain accessible even if some infrastructure components fail.

Applications can continue accessing files without interruptions.

C. Scalability

You don't need to estimate storage in advance.

Whether you store:

  • 10 files

  • 10 million files

Amazon S3 automatically scales.

D. Security

AWS provides multiple security mechanisms:

  • IAM Policies

  • Bucket Policies

  • Encryptions

  • Access Control

This help protect sensitive data.

E. Cost-Effective

You only pay for:

  • storage used

  • requests made

There is no need to purchase storage hardware.

F. High Performance

Amazon S3 supports:

  • Parallel uploads

  • Multipart uploads

This improves performance for large files.


S3 Storage Classes

Not every file needs the same level of access.

AWS provides different storage classes.

Below are the different storage classes that AWS provides:

S3 Standard

Used for frequently accessed files.

Examples:

  • Website images

  • Application assets

S3 Standard-IA

IA stands for:

Infrequent Access

Used for files accessed occasionally.

Examples:

  • Monthly reports

  • Older documents

One Zone-IA

Stores data in a single Availability Zone.

Cheaper but less resilient.

Suitable for:

  • Back-up copies

  • Temporary files

S3 Glacier

Used for long-term archival storage.

Examples:

  • Old Backups

  • Compliance records

Retrieve is slower but storage cost is very low.


What is Versioning?

Suppose today you upload reports.csv file.

Tomorrow, you modify the same file and upload it again.

What if you later discover that yesterday's version was correct?

Versioning helps solve this problem.

When versioning is enabled:

  • Old versions are preserved.

  • New uploads create new versions.

  • Previous files can be restored.


Real Life Example

Think about git.

Every commit stores history.

Similarly, S3 Versioning stores file history.


Static Website Hosting

Amazon S3 can also host static websites.

Examples:

  • Portfolio websites

  • Documentation sites

  • Landin pages

Files like:

index.html
style.css
logo.png

can be served directly from S3.

Because static websites do not require servers, S3 hosting is:

  • Simple

  • Fast

  • Low Cost


Understanding S3 Security

AWS provides multiple layers of security.

Examples:

IAM Policies

Control what users can do

Bucket Policies

Control who can access a bucket

Encryption

Protects stored data.

Even if IAM permissions are accidentally configured incorrectly, bucket policies can provide an additional security layer.


Common Use Cases of Amazon S3

Amazon S3 is used for:

  • Image storage

  • Video storage

  • backup and recovery

  • application logs

  • Static website hosting

  • Data archival

  • Data lakes

Big data workloads

Official AWS Documentation

If you would like to explore S3 in more detail, AWS provides excellent documentation:

AWS S3 Documentation: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html

AWS S3 Overview: https://aws.amazon.com/s3/


Conclusion

AWS S3 is one of the important AWS services and is widely used in almost every cloud application.

In this article, we learned:

  • What Amazon S3 is

  • Buckets and Objects

  • Benefits of S3

  • Storage Classes

  • Versioning

  • Security concepts

  • Static website hosting overview

In the next article, we will perform hands-on exercises and:

  • Create S3 buckets

  • Upload files

  • Enable versioning

  • Configuring permissions

  • Create IAM users

  • Host a static website using Amazon S3


2 views