Amazon S3

Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Service (AWS) that provides object storage and it’s a main building blocks of AWS, widely popular and deserves its own section. Three main aspect before jump into storages.

Buckets

  • Buckets must have a globally unique name.
  • Naing convention: No uppercase, No underscore, 3–63 characters long, Not an IP (Internet Protocol), Must start with lowercase letter or number.

Objects

  • The key is the full path.
  • E.g.: s3://my-bucket/my_file.txt
  • There is no concept of ‘directories’ within buckets.
  • Just keys with very long names that contain slashes (“/”).

Versioning

  • Same key overwrite will increment the ‘version’: 1, 2, 3….
  • It is best practice to version your buckets.
  • Easy roll back to previous version.
  • Protect against unintended deletes (ability to restore a version).

S3 Storage Classes

1) S3 Standard — General Purpose

  • High durability (99.999999999%) of objects across multiple availability zone.
  • If you store 10,000,000 objects with Amazon S3, you can on average expect to incur a loss of single object once every 10,000 years.
  • Best to use for: Big Data Analytics, Mobile & Gaming Applications, Content Distribution.

2) S3 Standard — Infrequent Access (IA)

  • Suitable for data that is less frequently accessed, but requires rapid access when needed.
  • High durability (99.9999999%) of objects across multiple availability zones.
  • 99.9% availability.
  • Low cost compared to Amazon S3 Standard.
  • Best to use for: As a data store for disaster recovery, backups.

3) S3 One Zone — Infrequent Access (IA)

  • Same as Standard IA but data is stored in a single availability zone.
  • High durability (99.9999999%) of objects in a single availability zone.
  • Data lost when availability zone is destroyed.
  • 99.5% availability.
  • Low cost compared to Standard IA (by 20%).
  • Best to use for: Storing secondary backup copies of on-premise data, or storing data you can recreate

4) Amazon Glacier & Glacier Deep Archive

Amazon Glacier Instant Retrieval

  • Minimum storage duration of 90 days.

Amazon Glacier Flexible Retrieval

  • Minimum storage duration of 90 days.

Amazon Glacier Deep Archive — For Long Term Storage — Cheaper

  • Minimum storage duration of 180 days.

5) Intelligent Tiering

  • Automatically moves objects between two access tiers based on changing access patterns.
  • Designed for durability of 99.999999999% of objects across multiple availability zones.
  • Designed for durability of 99.999999999% of objects across multiple availability zones.

S3 Lifecycle Rules

Transition actions:

It defines when objects are transitioned to another storage class.

eg:

  • Move to glacier for archiving after 6 months.

Expiration actions:

Configure objects to expire (delete) after some time.

eg:

--

--

Empowering the potential and the contribution of women towards Free and Open Source software (FOSS).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dulya Kemali Perera

Developer 💻 | SE Graduate 🎓 | Writer ✍ | Passionate STEM Engineer since 2019 👩‍🎓 Geek since ever 👾