Skip to main content

Chapter IV Deka Box

Deka Box is S3 Browser compatible storage objects spread across three data center locations with dedicated tenant portals to control buckets, access keys, and configuration. It is a cost-effective data store designed to handle large amounts of data with unlimited storage capacity.

4.1 Create Object Storage

  • To create Object Storage, on the Cloudeka Portal select the Object Storage menu, then click the Create Object Storage button.


Image 4.1 Object Storage - Create Object Storage



  • Fill in the Create Object Storage form, namely:

Table 4.1 Form Create Object Storage


Column Description
Select Volume Size Enter volume size in GB
Region Object storage region, us-east-1 is a region
Billing Type Type of billing is Default
Choose a unique name Give a unique name for your object storage, can only contain lowercase letters, numbers, and dash

  • If all the forms are filled in, click the Create Object Storage button


Image 4.2 Create Object Storage Form




Image 4.3 Create Object Storage Form



  • If the Object Storage is successfully created a pop-up will appear “Object Storage has been successfully Created”. On the object storage page, a list of storage objects that have been created will appear. The columns that are displayed are:

Table 4.2 Object Storage


Column Description
Name Name of your object storage
Billing Type Type of billing
Status Status of your object storage (if the status is “Active”, the storage can be used)
Quota Size The quota size of your object storage
Created Data Object storage creating time


Image 4.4 Object Storage Page - Successful Notification



4.2 Resize Object Storage

You can resize object storage according to the needs of the workload you are running on the VM.

  • Click More then select Increase Size.


Image 4.5 Object Storage Page



  • The Increase Storage Size page appears. Enter the required Object Storage size then click Resize Volume.


Image 4.6 Object Storage Page - Popup Increase Storage Size



4.3 Managing Object Storage Access Key

Object Storage Access Key is the unique identifier for an object within a bucket, access key will generate Key ID and Secret Key. to manage access keys, follow the instructions below:

  • Go to Object Storage page. there will show you an object storage list.


Image 4.7 Object Storage Page



  • Choose the bucket that you want to manage, in the Action column click More. then select Manage Access Keys.


Image 4.8 Halaman Object Storage - Manage Access Key



  • On the manage access key page, it will show access key list. the columns shown are:

Table 4.3 Manage Access Key


Column Description
Access Key Name The name of the access key
User User who have access key
Key ID Key ID for access the bucket
Secret ID Secret ID for access the bucket
Created Data Access key creation time


Image 4.9 Object Storage Page - Manage Access Key



  • If you want to see your Secret Key, just click eye icon on the Secret Key column.


Image 4.10 Halaman Object Storage - Access Key



  • It will pop up “Reveal Your Access Key” window, that will show your Access Key ID. If you want to reveal your Secret Key, type your Cloudeka password in the Your Password field then click Reveal.


Image 4.11 Reveal Your Access Key



  • After that, your Secret Key will appear.


Image 4.12 Reveal Your Access Key - Secret Key



  • You can also create a new access key for another user so that other user also can access to the bucket. to create a new access key, click Create Access Key.


Image 4.13 Create Access Key



  • It will show Create New Access Key window, fill the form below.
    • Access Key Name, the name of the access key.
    • Select user, select the user that you want to give access. If all form are filled in, click Confirm.


Image 4.14 Create New Access Key



  • After that, there will be a notification “New Access Key has been successfully created” and also will appear the Access Key ID and Secret Access Key.


Image 4.15 Notification



4.4 Access Object Storage using S3 Browser

This document describe how to access your object storage using S3 browser. Before you can access it, you need to download and install S3 Browser on your computer.

S3 Browser is a Windows application that is used as S3 client to access files stored in buckets and allows to manage S3 storage settings. You can upload, download and delete files, create folders, and perform other file management operations without using a web browser. Moreover, you can change options such as bucket policy, logging settings, manage users, edit permissions, and bucket sharing options.

If you already have S3 browser installed on your computer, follow these steps to access your object storage using S3 browser.

  • Open S3 browser on your computer.


Image 4.16 Open S3 Browser



  • It will shown the window to Add new Account. fill the fields:

Table 4.4 Add New Account


Column Description
Display Name Your display name.
Account type Choose S3 Compatible Storage
REST Endpoint bucket.cloud.lintasarta.co.id:8082
Access Key ID Your Access Key ID.
Secret Access Key Your Secret Access Key.

If all fields are filled in, click the Add new account button.


Image 4.17 Add New Account



  • Now you can access your bucket.


Image 4.18 S3 Browser



4.5 Upload files and folders in S3

This document describe how to upload files, folders, or create a new folder in S3. To do this, follow the steps below.

  • On your S3 bucket, click the Upload button and choose upload files or folder.


Image 4.19 S3 Browser



  • Choose the files or folder that you want to upload. Then, click Open.


Image 4.20 Choose Files or Folder



  • Uploaded files will appear on the right.


Image 4.21 S3 Browser - List File



  • You can also create a new folder on your bucket, you can click New folder button to create a new folder.


Image 4.22 S3 Browser - New Folder



  • In the Create New Folder window, type the folder name then click Create new folder button.


Image 4.23 S3 Browser - Create New Folder



  • The new folder has been created.


Image 4.24 S3 Browser - List Folder and Files



4.6 Enable versioning in S3

Versioning in S3 is keeping multiple variants of an object in the same bucket. you can use the S3 versioning feature to preserve, retrieve, and restore every version of every object stored in your buckets. With versioning, you can recover more easily from both unintended user actions and application failures. If you enable versioning for a bucket, S3 automatically generates a unique version ID for the object that is being stored. For example, in one bucket you can have two objects with the same key but different version IDs, such as photo.png (version 1) and photo.png (version 2). to enable versioning, follow the instructions below.

  • Open S3 Browser on your computer.


Image 4.25 S3 Browser - Open



  • On the S3 browser, click bucket, then select Edit Versioning Settings.


Image 4.26 S3 Browser - Edit Versioning Settings



  • It will appear Bucket Versioning Settings window, tick the checkbox of Enable versioning for test-bucket then click OK.


Image 4.27 Edit Versioning Settings - Enable versioning for test-bucket



  • Now the versioning feature is enabled, you can try to upload a file with the same filename that is in the bucket. For example, we will upload a file named 4.1 Object Storage - Create Object Storage.png with a different Size. It can be seen in the Version section there is no versioning history of this file.


Image 4.28 The Versioning Feature is Enabled



  • After trying to upload a file named 4.1 Object Storage - Create Object Storage.png, there will be two versions for the file. and those are two different files.


Image 4.29 S3 Browser - Versions



4.7 Create Static Web in S3

This document describes how to create a static web in S3, Static Web Hosting feature allows you to host your static website on Deka Box. Follow these steps to create your static web on Deka Box.

  • We need to create an index document for your static web and upload it. An index document is a web page, which is sometimes referred to as the default page.

    • Create an index.html file. if you don’t have an index.html file, you can use the following HTML to create one:
<!doctype html>
<html>
  <head>
     <title>This is the title of the webpage!</title>
  </head>
  <body>
     <p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
  </body>
</html>

Save the index file locally.

  • Upload your index.html file to your bucket.

  • After that, we need configure bucket policy to allow anonymous to access the static web.

  • Open S3 Browser on your computer.


Image 4.30 S3 Browser



  • On the S3 browser, click bucket, then select Edit Bucket Policy. We need to allow anonymous to access the static web.


Image 4.31 S3 Browser - Edit Bucket Policy



  • On the Bucket Policy Editor, create a policy syntax like the following example.
{
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": "*",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "urn:sgws:s3:::test-bucket",
        "urn:sgws:s3:::test-bucket/*"
      ]
    }
  ]
}

PLEASE NOTE: Customize test-bucket with your bucket name.


Image 4.32 Bucket Policy Editor




Image 4.33 Browser - URL



  • Now the bucket host your static web.

4.8 Delete Object Storage

This document describes how to delete Object Storage in Cloudeka Service Portal. Deleting object storage will permanently destroy all the objects inside the bucket, follow these steps to delete the object storage.

  • Go to the Object Storage page


Image 4.34 Object Storage



  • Choose the bucket that you want to delete, in the action column click more, then click delete.


Image 4.35 Object Storage - Delete



  • Select Destroy button to delete the object storage.


Image 4.36 Destroy Object Storage



  • If the Object Storage has been deleted, there will be a notification “Object Storage (object storage name) has been successfully destroyed”.


Image 4.37 Notification



×