Get the SageMaker Execution Role - Amazon SageMaker

Get the SageMaker Execution Role

Get the execution role for the notebook instance. This is the IAM role that you created for your notebook instance. You pass the role to the tuning job.

from sagemaker import get_execution_role role = get_execution_role() print(role)

Next Step

Specify a S3 Bucket to Upload Training Datasets and Store Output Data