What Is Amazon S3? Buckets, Objects, Storage Classes and Use Cases

Sunucun 3 min read

Amazon S3 (Simple Storage Service) is Amazon Web Services’ (AWS) object storage service. You upload your files (photos, videos, backups, logs, website files) into “buckets” that can be reached over the internet, store as much data as you like and pay only for what you use. According to AWS, the total amount of data and the number of objects you can store in S3 are unlimited.

Illustration: What Is Amazon S3? Buck…

How Does S3 Work? Buckets, Objects and Keys

  • Bucket: The container that holds objects. When you create it, you choose a name and an AWS region; the name and region cannot be changed later.
  • Object: The file itself and the metadata that describes it. According to AWS’s current FAQ, a single object can be up to 50 TB; a single upload (PUT) is limited to 5 GB, and larger files are sent with multipart upload.
  • Key: The object’s unique name within the bucket, for example photos/dog.jpg. S3 has no real folders; keys containing “/” are shown as folders in the console.
  • Versioning: When enabled, older versions of the same object are kept, so files that are deleted or overwritten by mistake can be recovered.

S3 Storage Classes

ClassUsed for
S3 StandardFrequently accessed data, web and mobile app files
S3 Intelligent-TieringData with changing or unknown access patterns; moves objects between tiers automatically based on access
S3 Express One ZoneApplications in a single Availability Zone that need single-digit millisecond latency
S3 Standard-IA / One Zone-IAData accessed infrequently but needed quickly when requested
S3 Glacier Instant RetrievalRarely accessed archives that must be available immediately
S3 Glacier Flexible RetrievalArchives that can be retrieved within minutes to hours
S3 Glacier Deep ArchiveThe lowest-cost long-term archive for data kept for years

AWS states that S3 is designed for 99.999999999% (11 nines) data durability. With lifecycle rules, you can automatically move old files to a cheaper class after a set period, or delete them.

Security Defaults

  • Buckets and the objects in them are private by default; only those you explicitly allow can access them.
  • Block Public Access settings are enabled by default on new buckets; AWS recommends not turning them off unless really necessary.
  • Since 5 January 2023, newly uploaded objects are encrypted on the server side (SSE-S3) by default.
  • Access is managed with IAM policies, bucket policies and access points. ACLs are disabled by default, and AWS recommends keeping them disabled in most cases.

A common cause of data leaks is buckets that were accidentally left public; before making a bucket public, check whether it is really necessary.

What Is S3 Used For?

  • Storing server and database backups in a different location
  • Hosting images, videos and downloadable files for websites and applications (often with the CloudFront CDN)
  • Publishing static websites
  • A data lake for logs and analytics data
  • Archives that need to be kept for a long time

Getting Started with S3

  1. In the AWS console, choose S3 > Create bucket and pick a unique name and a region.
  2. Leave Block Public Access turned on.
  3. Upload files by dragging and dropping them in the console, or with the AWS CLI (aws s3 cp file.zip s3://your-bucket-name/).
  4. Turn on versioning for important data, and add a lifecycle rule to reduce costs.
  5. Give applications access through IAM roles with only the permissions they need, never with root account keys.

In S3, besides the storage fee, requests and data transferred out to the internet are also charged; for files that are downloaded often, calculate the traffic cost in advance.

S3 is often used together with Amazon EC2 servers. If you are looking for a fixed-price server hosted in Türkiye, take a look at our cloud server plans.

Frequently Asked Questions

Is S3 a file system?

No. S3 is object storage: files are uploaded and read as a whole under a key name, and part of a file cannot be changed in place as on a disk. For storage attached to a server like a disk, EBS is used with EC2.

Is S3 free?

New AWS customers can start with free tier credits; after that, stored data, requests and data transfer are charged according to usage. See AWS’s S3 pricing page for current prices.

Categories

Latest guides