Grant Your Users Permissions to Build Custom Image and Text Prediction Models
Important
Custom IAM policies that allow Amazon SageMaker Studio or Amazon SageMaker Studio Classic to create Amazon SageMaker resources must also grant permissions to add tags to those resources. The permission to add tags to resources is required because Studio and Studio Classic automatically tag any resources they create. If an IAM policy allows Studio and Studio Classic to create resources but does not allow tagging, "AccessDenied" errors can occur when trying to create resources. For more information, see Provide permissions for tagging SageMaker resources.
AWS Managed Policies for Amazon SageMaker that give permissions to create SageMaker resources already include permissions to add tags while creating those resources.
In Amazon SageMaker Canvas, you can build custom models to meet your specific business need. Two of these custom model types are single-label image predicion and multi-category text prediction. The permissions to build these model types are included in the AWS Identity and Access Management (IAM) policy called AmazonSageMakerCanvasFullAccess, which SageMaker attaches by default to your user's IAM execution role if you leave the Canvas base permissions turned on.
However, if you are using a custom IAM configuration, then you must explicitly add permissions to your user's IAM execution role so that they can build custom image and text prediction model types. To grant the necessary permissions to build image and text prediction models, read the following section to learn how to attach a least-permissions policy to your role.
To add the permissions to the user's IAM role, do the following:
-
Go to the IAM console
. -
Choose Roles.
-
In the search box, search for the user's IAM role by name and select it.
-
On the page for the user's role, under Permissions, choose Add permissions.
-
Choose Create inline policy.
-
Select the JSON tab, and then paste the following least-permissions policy into the editor.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sagemaker:CreateAutoMLJobV2", "sagemaker:DescribeAutoMLJobV2" ], "Resource": "*" } ] }
-
Choose Review policy.
-
Enter a Name for the policy.
-
Choose Create policy.
For more information about AWS managed policies, see Managed policies and inline policies in the IAM User Guide.