Abhi001vj / workshop

AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker

Home Page:https://datascienceonaws.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upcoming O'Reilly Book: Data Science on Amazon Web Services

Register for early access directly on our website.

Influence the book by filling out our quick survey.

Data Science on Amazon Web Services

Workshop Cost

This workshop is FREE, but would otherwise cost <25 USD.

Workshop Cost

Workshop Instructions

1. Click on AWS Console

Take the defaults and click on Open AWS Console. This will open AWS Console in a new browser tab.

AWS Console

Double-check that your account name is something like IibsAdminAccess-DO-NOT-DELETE... as follows:

IAM Role

If not, please logout of your AWS Console in all browser tabs and re-run the steps above!

2. Update Admin Role and Create TeamRole IAM Role

IAM

Roles

Increase the Maximum CLI/API session duration of your Admin role IAM > Roles > IibsAdminAccess-DO-NOT-DELETE.... Change the session duration to avoid being logged out of the AWS Console after 1 hour:

IAM Role

Then, create a new IAM role TeamRole:

Create Role

Select Service

Select Policy

Add Tags

Review Name

3. Launch an Amazon SageMaker Notebook Instance

Open the AWS Management Console

Back to SageMaker

In the AWS Console search bar, type SageMaker and select Amazon SageMaker to open the service console.

Notebook Instances

Create Notebook Part 1

In the Notebook instance name text box, enter workshop.

Choose ml.t3.medium. We'll only be using this instance to launch jobs. The training job themselves will run either on a SageMaker managed cluster or an Amazon EKS cluster.

Volume size 250 - this is needed to explore datasets, build docker containers, and more. During training data is copied directly from Amazon S3 to the training cluster when using SageMaker. When using Amazon EKS, we'll setup a distributed file system that worker nodes will use to get access to training data.

Fill notebook instance

In the IAM role box, select the default TeamRole.

Fill notebook instance

You must select the default VPC, Subnet, and Security group as shown in the screenshow. Your values will likely be different. This is OK.

Keep the default settings for the other options not highlighted in red, and click Create notebook instance. On the Notebook instances section you should see the status change from Pending -> InService

Fill notebook instance

While the notebook spins up, continue to work on the next section. We'll come back to the notebook when it's ready.

4. Update IAM Role Policy

Click on the notebook instance to see the instance details. ` Notebook Instance Details

Click on the IAM role link and navigate to the IAM Management Console.

IAM Role

Click Attach Policies.

IAM Policy

Select IAMFullAccess and click on Attach Policy.

Note: Reminder that you should allow access only to the resources that you need.

Attach Admin Policy

Confirm the Policies

Confirm Policies

4. Start the Jupyter notebook

Note: Proceed when the status of the notebook instance changes from Pending to InService.

Start Jupyter

5. Launch a new Terminal within the Jupyter notebook

Click File > New > Terminal to launch a terminal in your Jupyter instance.

6. Clone this GitHub Repo in the Terminal

Within the Jupyter terminal, run the following:

cd ~/SageMaker && git clone https://github.com/data-science-on-aws/workshop

7. Navigate Back to Notebook View

8. Start the Workshop!

Navigate to 01_intro/ in your Jupyter notebook and start the workshop!

Start Workshop

About

AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker

https://datascienceonaws.com


Languages

Language:Jupyter Notebook 97.1%Language:Python 2.5%Language:Scala 0.1%Language:JavaScript 0.1%Language:Shell 0.1%Language:HTML 0.0%Language:TSQL 0.0%Language:Dockerfile 0.0%