SageMaker Housekeeping
S3 Bucket Setup (Lesson 17)
Purpose
- Store data files for model training.
- Save trained models and artifacts post-training.
Steps for Bucket Creation
-
Sign-In:
- Log in to AWS console using
my_adminaccount. - Ensure using the N. Virginia region.
- Log in to AWS console using
-
Access S3 Service:
- In AWS Services, search and open the S3 Management Console.
-
Create Bucket:
- Click on
Create bucket. - Choose a globally unique name following the convention:
prefix-ml-sagemaker. - If name conflict occurs, adjust the prefix for uniqueness.
- Select N. Virginia as the region.
- Click on
-
Bucket Creation Complete:
- Click on
Createto finalize the bucket setup. - The bucket will automatically replicate data across multiple Availability Zones in N. Virginia.
- Click on
Setup SageMaker Notebook Instance (Lesson 18)
Steps for Setup
-
Sign-In:
- Log in with the
my_adminaccount to AWS Management Console.
- Log in with the
-
Access SageMaker Service:
- Find SageMaker service and select
Notebook instances.
- Find SageMaker service and select
-
Select Region:
- Choose N. Virginia or a region close to you. Use the same region throughout the course.
-
Create Notebook Instance:
- Click on
Create notebook instance. - Name the instance (e.g.,
SageMakerCourse). - Select
T3 mediumfor the server configuration.
- Click on
-
IAM Role Configuration:
- Create a new IAM role during instance setup.
- Grant access to any S3 bucket or specific ones as needed.
-
Instance Creation and Access:
- Once the instance status is 'In service', access it by clicking
Open Jupyter. - The homepage of the Jupyter notebook environment will appear.
- Once the instance status is 'In service', access it by clicking
Key Benefits
- AWS manages patching and maintenance of the notebook instance.
- Stop the instance when not in use to avoid charges and restart as needed.