DEV Community

Cover image for S3crets of Cloud Storage
Shreya Nalawade
Shreya Nalawade

Posted on

S3crets of Cloud Storage

Storage as a service (STaaS) is a cloud business model in which a company leases or rents its storage infrastructure to another company or individuals to store data. Small companies and individuals often find this to be a convenient methodology for managing backups, and providing cost savings in personnel, hardware and physical space. As an alternative to storing magnetic tapes offsite in a vault, IT administrators are meeting their storage and backup needs by service level agreements (SLAs) with an SaaS provider, usually on a cost-per-gigabyte-stored and cost-per-data-transferred basis. The client transfers the data meant for storage to the service provider on a set schedule over the SaaS provider’s wide area network or over the Internet

Amazon S3
Amazon S3 (Simple Storage Service) provides object storage, which is built for storing and recovering any amount of information or data from anywhere over the internet. It provides this storage through a web services interface. While designed for developers for easier web-scale computing, it provides 99 percent durability and 99.99 percent availability of objects. It can also store computer files up to 5 terabytes in size.

Step 1: Navigating AWS S3

To begin implementing "Storage as a Service," log in to your AWS Management Console and head over to the Services menu. Under the Storage section, select S3 (Simple Storage Service).

AWS S3 is a highly scalable, secure, and durable storage solution where you can store and retrieve any amount of data at any time. Once you select S3, you’ll be greeted by the S3 dashboard, which serves as the central hub for managing your buckets, objects, and permissions. From here, you can create new storage buckets, define access policies, and integrate S3 with various applications. This step is foundational for setting up your cloud storage environment.

S3_1

Step 2: Creating a Bucket in S3

After navigating to the S3 dashboard, the next step is to create a storage container, known as a bucket. Buckets are the foundational storage units in S3, where you can upload, organize, and manage your data.

S3_2

  1. Click "Create Bucket": On the S3 dashboard, locate the "Create Bucket" button at the top. Click it to open the bucket creation wizard.

S3_3

  1. Specify Bucket Details:
    • Bucket Name: Provide a unique name for your bucket. AWS requires bucket names to be globally unique and follow specific naming conventions (e.g., no spaces, only lowercase).
    • Region: Select the AWS region closest to your users or application to minimize latency and reduce costs.

S3_4

  1. Configure Options (Optional):
    • Set versioning, tags, or server-side encryption as needed.
    • Decide on access permissions. You can leave the bucket private or configure it for public access, depending on your use case.

S3_5

  1. Review and Create: Review your settings and click "Create Bucket." Your bucket is now ready to use for storing and managing objects.

S3_6

Step 3: Verify Bucket Creation

Once you have successfully completed the previous steps, you will see a confirmation message indicating that the bucket has been created. In this example, the bucket is named 'bucketshreyacloud'.

To verify the creation:

  1. Navigate back to the S3 dashboard.
  2. Locate your newly created bucket in the list of buckets displayed.
  3. Click on the 'bucketshreyacloud' in this case name to open its details page.

S3_7

From here, you can begin configuring the bucket, uploading objects, and managing permissions to tailor it to your use case. Each bucket comes with its own settings, allowing you to customize features such as versioning, encryption, and public access.

Step 4: Uploading an Object to the Bucket

With the 'bucketshreyacloud' bucket created, the next step is to upload an object (a file or piece of data) to it. Here's how:

  1. Open the Bucket:

    From the S3 dashboard, click on the 'bucketshreyacloud' bucket name to open it.

  2. Click "Upload":

    On the bucket's details page, you'll see the "Upload" button. Click it to open the upload wizard.

  3. Add Files:

    • In the upload wizard, click "Add files" to select files from your local system.
    • Alternatively, you can drag and drop files directly into the wizard.
  4. Set Permissions (Optional):

    • Adjust the object's access permissions if needed (e.g., make it public or restrict access).
    • By default, objects inherit the bucket's permissions.
  5. Review and Upload:

    After selecting your files and configuring any necessary options, click "Upload".

  6. Confirmation:

    Once the upload completes, the object will appear in the bucket's object list. You can click on the object name to view details, including its URL, size, and metadata.

S3_8

Congratulations! You've successfully uploaded an object to your 'bucketshreyacloud' bucket.

Top comments (0)