Unify Integrations
Logo
Amazon sagemaker

Amazon sagemaker

Logo

2 mins READ

Use the Amazon sagemaker connector to build, train, and deploy ML models.

Integrating your application with Amazon sagemaker lets you use these operations in an automation. It exposes 6 actions, listed below. Add the connector from the Connections area, authenticate, then select its operations in the automation builder. Capabilities: actions.

Authentication

Before you begin, make sure you have the following information:

  • Connection name: a name that identifies this connection in UnifyApps, such as "MyAppAmazonSageMakerIntegration".

  • Region (required): the AWS region of your resources, such as us-east-1. If your AWS console URL starts with https://us-east-1.console.aws.amazon.com, enter us-east-1.

  • Authentication type: Access Key, IAM Role or Instance Role.

The fields you fill in depend on the authentication type:

  • Access Key: enter the Access key ID and Secret access key of an IAM user (both required).

  • IAM Role: enter the ARN of an IAM role in the IAM Role field (required), and in External Id the external ID set on the role's trust relationship.

  • Instance Role: no keys are entered; the connection uses the IAM role of the environment that UnifyApps runs in. Use it only when UnifyApps runs inside your own AWS account.

Access Key Based Authentication

  1. Sign in to the AWS Management Console.

  2. Search for Users in the search bar at the top of the console and open Users in IAM (Identity and Access Management).

  3. Click Create user and enter a user name.

  4. Choose Attach policies directly and attach the AmazonSageMakerFullAccess policy (or a policy that grants the Amazon SageMaker permissions you need). Click Create user.

  5. Open the new user, go to Security credentials and click Create access key.

  6. Choose Command Line Interface as the use case, add a description tag and click Create access key.

  7. Copy the access key ID and secret access key into the connection form. Store them securely; anyone with them can access your AWS account.

IAM Role Based Authentication

  1. Sign in to the AWS Management Console and open IAM.

  2. Select Roles and click Create role.

  3. Under Trusted entity type, choose AWS account, select Another AWS account and enter the UnifyApps AWS account ID. Contact UnifyApps support to get it.

  4. Check Require external ID and enter the external ID provided by UnifyApps. Enter the same value in the External Id field of the connection form.

  5. Attach the AmazonSageMakerFullAccess policy (or a policy that grants the Amazon SageMaker permissions you need).

  6. Enter a role name and description, and click Create role.

  7. Open the role, copy its ARN and paste it into the IAM Role field of the connection form.

The screenshots below show the AWS console. First, the Retrieve access keys page that appears after you create an access key:

amazon-cognito-1-aaed095a-blurred.png
amazon-cognito-1-aaed095a-blurred.png

Next, the trusted entity settings of an IAM role: Another AWS account with Require external ID checked:

amazon-cognito-2-3425f3d0-blurred.png
amazon-cognito-2-3425f3d0-blurred.png

Finally, the IAM dashboard, where the account menu and the AWS Account panel show your own account details:

amazon-cognito-3-7ec8aeb2-blurred.png
amazon-cognito-3-7ec8aeb2-blurred.png

Actions

Action Name

Description

Create autoML job

Create autoML job in amazon sagemaker

Describe autoML job

Describe autoML job in amazon sagemaker

Invoke endpoint

Invoke a deployed SageMaker endpoint to get inferences from a hosted model.

Invoke endpoint (Streaming)

Invoke a deployed SageMaker endpoint and receive the inference response as a stream.

Invoke endpoint with JSON response stream (Streaming)

Invoke a deployed SageMaker endpoint and receive the inference response as a JSON stream.

Search autoML job

Search autoML job in amazon sagemaker