Skip to content

Commit

Permalink
Update section3.adoc (#47)
Browse files Browse the repository at this point in the history
Update section3.adoc
  • Loading branch information
sarveshpandit authored Mar 22, 2024
1 parent a7e3cf8 commit 833b8f1
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions modules/chapter2/pages/section3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,14 @@ In fact, storing your models in the data connection enables you to use Model Ser
Model Serving downloads the model files from S3 by using a data connection.






== Exercise: Getting Started with Data Connections

=== Setup

Before you start with this exercise, you must configure an S3 bucket.

If you do not have an S3 object store available, follow the https://ai-on-openshift.io/tools-and-applications/minio/minio/[guide to create an S3 bucket by using _Minio_].

Note that you do not necessarily have to create a Data Science project to deploy Minio, as suggested in the guide.
For the purposes of these courses, you can create you own dedicated OpenShift project to deploy the Minio instance.

Expand All @@ -119,13 +116,8 @@ Make sure you use the `Standard Data Science` image.
This image contains the `boto3` library, required for the second part of the exercise.
====

[NOTE]
====
Alternatively, you can add a data connection to an existing workbench by editing the workbench.
====
Scroll down to the btn:[Data connections] section and select `Use a data connection`.

Scroll down to the btn:[Data connections] section, check btn:[Use a data connection] box and select btn:[Create data connection].
This option creates the data connection and assigns it to the workbench that you are creating.
Complete the form with your S3 connection parameters.

image::dataconnection-new.png[]
Expand All @@ -137,7 +129,15 @@ A non-empty region is required to pass `boto3` validations.
Otherwise, you might get an `Invalid region` error.
====

Save the workbench.
To create a workbench, click btn:[Create workbench].

This option creates the data connection and assigns it to the workbench that you are creating.

[NOTE]
====
Alternatively, you can add a data connection to an existing workbench by editing the workbench. Save the workbench.
====

In the data science project page, notice the newly created data connection, which is associated with the workbench.

image::dataconnection-list.png[]
Expand All @@ -152,9 +152,12 @@ The association between data connections and workbenches follows a `1 to N` sche

=== Edit a Data connection

Next, click the btn:[⋮] button of the data connection, then click btn:[Edit data connection].
Note that you can assign more workbenches to the same data connection.

Create new workbench.

Next, click the btn:[⋮] button of the data connection, then click btn:[Edit data connection].

image::dataconnection-edit.png[]

You do not need to make any changes.
Expand Down Expand Up @@ -192,8 +195,11 @@ f. Enter https://github.com/RedHatQuickCourses/rhods-intro.git as the repository
a. In the file explorer, navigate to the `rhods-intro/notebooks/data-connections` directory.

b. Open the `exercise.ipynb` notebook.
This exercise covers the basic use of the `boto3` library, which is the AWS SDK for Python.
This library is included in some workbench images included in RHOAI, such as `Standard Data Science`.

c. Follow the instructions in the notebook.
Click the first cell, then press btn:[Shift+Enter] to execute the cell and move to the next one.
Next, execute and review the rest of the cells.
Keep pressing btn:[Shift+Enter] until you reach the bottom.

d. Next, execute and review the rest of the cells.
Keep pressing btn:[Shift+Enter] until you reach the bottom.

0 comments on commit 833b8f1

Please sign in to comment.