Amazon S3 Storage Classes
Tags: aws, s3, amazons3, storageclasses
Published: 2022-03-26 04:29:58

## What is Amazon S3?
Amazon Simple Storage Service (Amazon S3) is a scalable, high-speed, web-based cloud storage service. The service is designed for online backup and archiving of data and applications on Amazon Web Services (AWS). Amazon S3 was designed with a minimal feature set and created to make web-scale computing easier for developers.

---

## AWS S3 Storage Classes
AWS S3 offers a range of S3 Storage Classes to match the use case scenario and performance access requirements.
S3 storage classes are designed to sustain the concurrent loss of data in one or two facilities
S3 storage classes allow lifecycle management for automatic migration of objects for cost savings
All S3 storage classes provide the same durability, first-byte latency, and support SSL encryption of data in transit, and data encryption at rest
S3 also regularly verifies the integrity of the data using checksums and provides the auto-healing capability

```
Here is the Tutorial video which is based upon S3 Storage Classes👇👇
```
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4kworepbmtjajmm3u5c.png)](https://www.youtube.com/watch?v=dFFJH4Cr3Ww)

---

## S3 Storage Classes
-  There are different storage options for cost optimization.

- Amazon S3 Standard - General Purpose
- Amazon S3 Standard - Infrequent Access (IA)
- Amazon S3 One Zone - Infrequent Access
- Amazon S3 Intelligent Tiering
- Amazon Glacier
- Amazon Glacier Deep Archive
- Amazon S3 Reduced Redundancy Storage (deprecated - omitted)

---
Durability and Availability of S3 storage:
Durability: It is the probability that the object will remain intact and accessible after a period of one year.

Availability: It is the percentage of time that a workload is available for use.

---

## Different types of S3 Storage available:


### 1. Amazon S3 Standard — General Purpose:
This is the default storage and is used frequently.
Eg: Big Data Analytics, mobile and gaming apps, content distributions.

### 2. S3 Standard — IA (Infrequent Access):
This type of storage should be used when you are not using the data that often. When you use them, you need them rapidly.
Cost is optimized from the general plan.
Eg: Datastore for the disaster recovery backups.

### 3. S3 One Zone IA (Infrequent Access):
This one is cheaper than the previous S3 IA storage (< 20%).
The difference is it is stored on only one A-Z (i.e. availability zone).

### 4. S3 Intelligent-Tiering:
If you do not know what to choose between General and IA plan storage, this one is for you.
The less-used file will be moved to IA mode and others used in Standard storage mode.


### 5. Amazon Glaciers & Amazon Glacier Deep Archive:
This storage is used when some data needs to be frozen for a certain period of time.
Data can be retrieved quickly as listed in the fees plans below.
They are cheap in price. Amazon Glacier Deep Archive is the cheapest.

---

## Comparison of different AWS Storage types:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psulkpqdkapryoqwrei9.png)

---

## S3 Storage Classes Comparison:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkuqqchze1haf5wjwu3f.png)

---

## Hands-on AWS Storages:

- Open Amazon S3 Console.
- Open the S3 Bucket you want.
- Upload any objects.
 ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2nmhm9600qum37dk8v97.png)

- Expand the Properties Option.
- Then you can see the Storage Classes.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8273chx0chb8wlbn8q1e.png)

- Here we get access to all the storage classes we have learned.
- Select Standard-IA
- Then Click on Upload.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2bvcm6wiml3rwbs7eofd.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g8xa0eg50s1dek7cm9dm.png)

- Upload another file
- Now this time Choose "Glacier Flexible" as Storage Class.
- Upload.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2jvnazcug0dzijw9r5bu.png)

- Now go to the 2nd object that you just uploaded.
- you can see you can't open that file because we stored the object in the Glacier Flexible Retrieval Storage class, In order to access it you first restore it.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ddt56h75ui1o4qizpnhq.png)

- Now if we go to our first object
- We can easily able to open that file.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7zigbb2pj446o7ai9m4.png)

- We can also edit the Storage class after upload.
- For Edit First, go to that object.
- In Properties, Scroll down to the Storage Class
- Click on Edit. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rjqg4xvo0jf4adi77kq0.png)

- Here you can change the storage class of an object. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8778tysbjzdd55lwf81k.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fuf5t9v0gjgpar372hbd.png)


---
▬▬▬▬▬▬ WANT TO LEARN MORE? ▬▬▬▬▬▬
Full Terraform tutorial ► [https://bit.ly/2GwK8V2](https://bit.ly/2GwK8V2)
DevOps Tools, like Ansible ► [https://bit.ly/3iASHuP](https://bit.ly/3iASHuP)
Docker Tutorial ► [https://bit.ly/3iAT9Jx](https://bit.ly/3iAT9Jx)
AWS Tutorial ► [https://bit.ly/30GFv1q](https://bit.ly/30GFv1q)
GCP Tutorial ► [https://bit.ly/3mwh412](https://bit.ly/3mwh412)
Jenkins Tutorials ► [https://bit.ly/3iHnfv4](https://bit.ly/3iHnfv4)
Jenkins Pipeline ► [https://bit.ly/30CJGLB](https://bit.ly/30CJGLB)
Python ► [https://bit.ly/3I7bewU](https://bit.ly/3I7bewU)
Python in just 1 video ► [https://bit.ly/3EeqGVy](https://bit.ly/3EeqGVy)