Skip to content

Cloud Object Storage Setup

Romeo Kienzler edited this page Nov 30, 2022 · 1 revision

In order to store and retrieve data from notebooks it is important to properly setup IBM Cloud Object Storage (COS). COS is S3 compatible and represents the most cost effective way of persisting large data sets.

Although, in the context of a single notebook execution a transient filesystem is available, it is not possible to store data beyond the life cycle of an individual notebook. Also sharing data between notebooks is not possible.

In the IBM Lite plan for cloud object storage 5 GB of data can be stored for free. In case more is needed, simply switch the storage plan so an infinitely large storage pool becomes available and only data stored is charged.

To find out more about the pricing, please visit the pricing overview.

You can create a standard plan Cloud Object Storage Service here

If you are fine with the 5 GB storage limitation just work with the free COS.

  1. To access it, in IBM Cloud Pak for Data, on the project page, please click on settings:

  1. Then please click on Storage->"Manage in IBM Cloud"

  1. Click on "Create Bucket"

  1. Click on "Quick start"

  1. Click on "Next" and note down the auto-generated bucket name and assignt it to the "bucket_name" in the notebook

  2. Then again, click on "Next", then click on "View Bucket configuration". Please note down the public endpoint and assign it to the "endpoint" variable in the notebook

  1. Click on "Service Credentials"

  1. Click on "New Credential". Leave the default, but please enable under advanced options, "Include HMAC Credential". Then click on add

  1. Expand on the newly created service credential and copy-paste the entire contents

  1. Paste the contents of the credentials to the notebook, please make sure that the final result looks similar to the following screen shot (e.g. that also endpoint and bucket_name has been set)

Clone this wiki locally