Back

May 25, 2022

Getting Started with TileDB Cloud in < 4 Minutes

Data Management
8 min read
Mike Broberg

Mike Broberg

Technical Marketing Manager

TileDB Cloud is a universal database platform that manages all your data and code assets, and enables fast and collaborative analysis. In this blog post I will walk you through the steps you need to take to get started with TileDB Cloud in just a few minutes.

To take full advantage of the TileDB Cloud capabilities, you will need to have an AWS account and set up an S3 bucket. TileDB Cloud manages compute and offers Jupyter notebooks with some small EBS storage dedicated for you, but it does not host your data and code. Your assets remain under your full ownership and control in your own cloud storage.

Note that you don’t need an AWS account to start exploring TileDB Cloud and the plethora of public data and code that can be found on the platform, or data and code that your friends or colleagues would like to share with you. You need an AWS account only if you’d like to create and manage your own assets.

Once you sign up and log into TileDB Cloud, you can use the platform in three modes:

  • Explore Mode: No need for an AWS account or a credit card. You can explore the various public assets in the platform, download available Jupyter notebooks, etc.
  • Read Mode: No AWS account needed, but you’ll need to either unlock your free credits or add a credit card for further compute consumption. In this mode you’ll be able to spin up Jupyter notebooks and dashboards in the platform, access existing arrays programmatically, and more.
  • Complete Mode: An AWS account is needed, along with at least one S3 bucket and AWS keys that can grant access to the bucket(s). In this mode you can register your arrays, and create any asset, such as notebooks, dashboards, UDFs, groups, ML models and task graphs.

In the rest of this article, I describe those three modes in more detail. To accompany these instructions, we also prepared a video that runs through all of the steps below in well under 4 minutes. So read on, or check out the recording here:

Explore Mode

As a new user, you’ll land directly in the TileDB Cloud Explore tab, which allows you to mainly see public assets, browse their metadata, inspect an array schema, render a static preview of a Jupyter notebook, etc. You won’t be able to programmatically read public arrays, register your own TileDB Cloud arrays, run interactive Jupyter notebooks, or experiment with many other features until you advance to Read Mode.

Screenshot of groups in the TileDB Cloud console
Exploring public groups in TileDB Cloud

Read Mode

New users are eligible to unlock $10 in free credits, without even entering a credit card. To claim your free credits and enter the Read Mode, you just need to tell us a little bit about your use case. To start the process, head to your user account icon in the upper right and find the Unlock $10 credits button.

Screenshot of user account menu in the TileDB Cloud console
Your user account has a shortcut for unlocking free credits

This button will open a modal window, where you’ll need to tell us a little about the type of data you’re interested in (for example, “VCF files”, “LAS data”, “biomedical images in various file formats”, etc). You’ll also need to describe your high-level use case.

Screenshot of credits request window in the TileDB Cloud console
Completing your credits request

It’s important to note that requests for credits can take up to one business day to process. A member of the TileDB Cloud team personally reviews each request. Once your request has been approved, your account will be in Read Mode.

You can check on the status of your credits request. Again under your user account, find the Settings button and navigate to the Billing page. Any free credits added to your account will appear under the Current bill widget, displaying your Credits balance in blue.

Screenshot of the billing page in the TileDB Cloud console
Confirming availability of free credits in a TileDB Cloud account

After confirming that your account is in Read Mode, head back to the Explore tab and browse the Groups section to access Tutorials / Python / Dataframes / dataframes_basics.ipynb. Select the notebook, and you’ll be able to Launch it directly.

Screenshot of a notebook overview page in the TileDB Cloud console
Launching the dataframes tutorial on TileDB Cloud

In a few seconds, your notebook will launch within the TileDB Cloud console, and you’ll be able to run cells and experiment with your own code.

Screenshot of the JupyterLab environment on TileDB Cloud
A freshly launched Jupyter notebook on TileDB Cloud

You can run this notebook completely in Read Mode. This notebook also demonstrates an important distinction about data storage. When you launch a Jupyter notebook on TileDB Cloud, it is backed by a 2 GB Amazon EBS volume dedicated to your user account. Typically, this space is allocated to allow users to upload custom packages to install into the environment or store relatively small data. Your home directory can be found in the JupyterLab file browser.

Screenshot of the JupyterLab file browser on TileDB Cloud
Your hosted Jupyter environment on TileDB Cloud is backed by 2 GB of block-level storage

When you are done with the tutorial, it is a best practice to shut down the notebook server using the button in the upper right.

Complete Mode

Complete Mode requires linking TileDB Cloud to your cloud provider account. In my example, I’ll be using AWS.

First, from your user account menu, select the Account credentials button.

Screenshot of the user account menu in the TileDB Cloud console, from the context of a notebook overview page
Your user account also has a shortcut for adding your cloud provider credentials

Choose the + Add credentials button and a modal window will appear to enter your cloud provider access key ID and secret. This will allow you to enter the AWS credentials related to the various S3 buckets you will be using to store your arrays and other assets to be managed by TileDB Cloud.

Screenshot of the add cloud provider credentials modal in the TileDB Cloud console
Here’s where I'll enter my AWS credentials

The AWS docs have the details on managing access keys. You can quickly access them via the AWS console.

Screenshot of the IAM security credentials section in the AWS console
Never publicly expose your secret

Success!

Screenshot of the 'credentials updated' message in the TileDB Cloud console
My AWS credentials are now successfully added

Now that TileDB Cloud can talk to my AWS account, I just need to tell it where to store my arrays and other assets by default. Navigate to your Profile page and scroll down to the Storage path section. Go ahead and select the credentials you just created.

Screenshot of defining a default S3 storage path within the TileDB Cloud console
Starting to set up the default storage path for my TileDB Cloud assets

For the last step, I’ll pop back into the AWS console and access the S3 object storage service. It’s as simple as choosing your bucket and hitting the Copy S3 URI button. (If you’re new to AWS, however, their docs can help you set up Amazon S3).

Screenshot of copying an S3 URI within the AWS console
Choosing a default S3 bucket for my TileDB Cloud data

Paste in the S3 URI, and that’s it. Effectively you have told TileDB Cloud the default S3 bucket you will be using to create the various assets (e.g., Jupyter notebooks, UDFs, etc) and the corresponding AWS credentials that will allow TileDB Cloud to gain access to that S3 bucket. TileDB Cloud Complete Mode is successfully enabled!

Screenshot of defining a default S3 storage path within the TileDB Cloud console
Completing the setup of my default storage path for TileDB Cloud

Now, you can upload your own notebooks and files to TileDB Cloud, register pre-existing TileDB arrays to TileDB Cloud, or programmatically create and register new TileDB Cloud arrays as you go. These assets, and more, are stored in the object storage path that you provided in the steps above. You host this data and retain all control even if you ever decide not to use TileDB Cloud in the future (all your assets are stored in the TileDB open-source format, which is always accessible via the open-source TileDB Embedded library).

What’s Next?

From here, you should be able to explore all TileDB Cloud has to offer using your free credits. Feel free to poke around the TileDB Cloud console on your own. But for further reading, here are a couple of resources that helped me get started in my TileDB journey:

Try creating and registering your first TileDB Cloud array, and then slicing it right from the same notebook. It works like magic!

Stay tuned in by following us on Twitter, joining our growing Slack community, or participating in the TileDB forum. Thank you for reading, and I hope you enjoy exploring TileDB Cloud!

Want to see TileDB Cloud in action?
Mike Broberg

Mike Broberg

Technical Marketing Manager