AWS Sagemaker

AWS Sagemaker is broad set of tools for managing, building, and deploying ML resources.

Type: Cloud Provider / Infrastructure

Website: https://aws.amazon.com/sagemaker/

General docs: https://docs.aws.amazon.com/sagemaker/

Python SDK Docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker.html#sagemaker

API Docs: https://docs.aws.amazon.com/sagemaker/latest/dg/api-and-sdk-reference.html

Authentication

To connect Sagemaker to Orchestra, you will need to follow the same process you normally do when dealing with service principals in AWS:

  • An AWS IAM user with the required permissions for the job you wish to run

  • An access key for the IAM user

Prerequisites

To get started, you will need:

  • An AWS IAM user with the required permissions for the job you wish to run

  • An access key for the IAM user

Instructions

  1. Navigate to the IAM console in the AWS account you wish to run the job in.

  2. Attach the required permissions. See below for the required permissions for each job.

  3. Generate a CLI access key for the User. More information is available in the AWS docs here. Once the access key is generated you can download a CSV containing your Access Key ID and Secret Access key.

Required Permissions

AWS Train Sagemaker Model. The following actions are required. You can specify the resource if desired.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "VisualEditor0",
      "Effect": "Allow",
      "Action": [
        "sagemaker:DescribeTrainingJob",
        "sagemaker:StopTrainingJob",
        "sagemaker:CreateTrainingJob"
      ],
      "Resource": "arn:aws:sagemaker:<REGION>:<ACCOUNT_ID>:training-job/*"
    }
  ]
}

Last updated