Explore Amazon Simple Storage Service

                         amazon-aws-logo

                                   In this article we will explore about Amazon Simple Storage Service and their use cases.  Amazon Simple Storage Service (Amazon S3) is storage for the Internet. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web.It is highly scalable, reliable, fast and inexpensive data storage.

                          As first step we will learn the S3 terminology like bucket, object, key and ACL.

Bucket: Collection (container) of objects. Up to 100 per account. Names up to 255 characters long.

Object: Objects are the fundamental entities stored in Amazon S3. Objects consist of object data and metadata. They are Individually addressable data item. Any number per bucket and per account. An object is uniquely identified within a bucket by a key (name) and a version ID.

Key: A key is the unique identifier for an object within a bucket. Every object in a bucket has exactly one key.

Now we will follow the below steps to create bucket and upload the objects to Amazon S3.

Step 1: From the AWS console select S3. The below screen will appear. Click on the “Create Bucket” button to create a bucket.

AWS_S3_Initialpage

Step 2: After clicking on the “Create Bucket”, give the bucket name and select the region from the drop down.

AWS_S3_Create_Bucket

Step 3: The bucket will get create and you can see the bucket properties.

AWS_S3_Bucket_Properties

Step 4: Click on the bucket name on the left side to upload the objects into the bucket. Click on “Upload” button to upload the objects.

AWS_S3_Upload

Step 5: After selecting the files/docs to upload click on “Start Upload” button.

AWS_S3_Upload2

Step 6: Select the object from the left side pane and see the object properties. Every object has its own public url to access it.

Aws_S3_Object_Properties

Step 7:  Set the permissions to the object to restrict the access. In this case we are going to provide access to everyone.

AWS_S3_Object_Permissions

Now you can take the object url and access the uploaded file.

Usecases: In the present data world lot of data sharing/uploading sites are using AWS s3 service. For example to host the blogs, static web sites and image/file hosting services like Instagram, sugmug etc…

In the coming article we will discuss how we can design a system using AWS s3 to serve the static content. Until then “Happy Cloud Computing !!!“.

Siva Janapati is an Architect with experience in building Cloud Native Microservices architectures, Reactive Systems, Large scale distributed systems, and Serverless Systems. Siva has hands-on in architecture, design, and implementation of scalable systems using Cloud, Java, Go lang, Apache Kafka, Apache Solr, Spring, Spring Boot, Lightbend reactive tech stack, APIGEE edge & on-premise and other open-source, proprietary technologies. Expertise working with and building RESTful, GraphQL APIs. He has successfully delivered multiple applications in retail, telco, and financial services domains. He manages the GitHub(https://github.com/2013techsmarts) where he put the source code of his work related to his blog posts.

Tagged with: , , ,
Posted in Cloud Computing
One comment on “Explore Amazon Simple Storage Service
  1. Anonymous says:

    Can you explain how to use AWS S3 to serve the static content?

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Dzone.com
DZone

DZone MVB

Java Code Geeks
Java Code Geeks
OpenSourceForYou