What is AWS S3


What is AWS S3?

Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services that provides storage services. It is like Google Drive and Dropbox. Are you wondering how it is useful to AWS clients? It is used to store data such as photos and videos. Why can't we use AWS Database technologies? to answer that question, S3 is mainly used to store big data, and they don't frequently change - such as profile photos, Instagram photos, Netflix videos. 

The two primary entities in S3 is bucket and objects. The Bucket is used to store the object, and the objects are the actual data, such as photos and videos. The bucket needs to be unique globally. The bucket is used to differentiate the objects.

The steps on creating a new bucket are as below -

a.       Navigate to S3 in AWS console and click create bucket–


 

b.       Enter the bucket name, if required, change the default values. Click on 'Create Bucket'.


c.       Bucket is created successfully.



d.       To upload the data, go to the Bucket and click ‘Upload’


e.       We can either add files or folder.


f.        Browser the files or folders. Click ‘Upload’. The file will be uploaded.

g.       You cant access the data from your browser now. This is because you don’t have permission. To access permission, you need to add permission to the bucket. To change the permission, click on the bucket –

h.       Go to the permissions tab and grant permission to the public–



What is S3 Storage Classes?

Standard

It is used if we need great performance and also frequently used objects. Teh objects is stored in multiple locations. It has 99.99% availability, and it the most expensive storage class. Dynamic objects such as most used objects can be used here.

    Intelligent-Tiering

It is used to optimize cost by automatically moving the objects to the appropriate tier based on the access usage; frequently used data will be moved to one tier and less-used data to another low-cost tier. 

Other storage classes are Standard-IA and One Zone-IA which are used if we need to store the data for a long time, but less frequently accessed data, and Glacier and Glacier Deep Archive for long-term archive

What is the lifetime of the object?

We can set the objects' lifetime, such as you could delete the object after one year, move the object from one storage class to another storage class after a few days, etc. This goes by the requirement; a few products would require the objects only for a few days and a few products might want to move infrequently used objects to other storage classes.

To change the Lifecycle of the bucket, follow the below steps -

a. Click on the bucket -

b. Click on the ‘Management’ tab and click on the ‘Create lifecycle rule’.





c. Fill the data. It is self-explanatory.