Setting up trusted identity propagation for
Studio
Setting up trusted identity propagation for Amazon SageMaker Studio requires your Amazon SageMaker AI domain
to have IAM Identity Center authentication method configured. This section guides you through the
prerequisites and steps needed to enable and configure trusted identity propagation for your
Studio users.
Prerequisites
Before setting up trusted identity propagation for SageMaker AI, set up your IAM Identity Center using the
following instructions.
Ensure that your IAM Identity Center and domain are in the same region.
Enable trusted identity
propagation for your Amazon SageMaker AI domain
-
You can only enable trusted identity propagation for domains with AWS IAM Identity Center
authentication method configured.
-
Your IAM Identity Center and Amazon SageMaker AI domain must be in the same AWS Region.
Use one of the following options to learn how to enable trusted identity propagation for
a new or existing domain.
- New domain - console
-
Enable trusted identity propagation for a new domain using the SageMaker AI
console
-
Open the Amazon SageMaker AI
console.
-
Navigate to Domains.
-
Create a custom domain. The domain must have the AWS IAM Identity Center authentication method configured.
-
In the Trusted identity propagation section,
choose to Enable the trusted identity propagation for all
users on this domain.
-
Complete the custom creation process.
- Existing domain - console
-
Enable trusted identity propagation for an existing domain using the SageMaker AI
console
For trusted identity propagation to work properly after it is enabled for an
existing domain, users will need to restart their existing IAM Identity Center sessions. To do so,
either:
-
Open the Amazon SageMaker AI
console.
-
Navigate to Domains.
-
Select your existing domain. The domain must have the AWS IAM Identity Center authentication method configured.
-
In the Domain settings tab, choose Edit in the Authentication and
permissions section.
-
Choose to Enable the trusted identity propagation for
all users on this domain.
-
Complete the domain configuration.
- Existing domain - AWS CLI
-
Enable trusted identity propagation for an existing domain using the
AWS CLI
For trusted identity propagation to work properly after it is enabled for an
existing domain, users will need to restart their existing IAM Identity Center sessions. To do so,
either:
aws sagemaker update-domain \
--region $REGION \
--domain-id $DOMAIN_ID \
--domain-settings "TrustedIdentityPropagationSettings={Status=ENABLED}"
-
DOMAIN_ID
is the Amazon SageMaker AI domain ID. See View
domains for more information.
-
REGION
is the AWS Region of your Amazon SageMaker AI domain. You can find
this at the top right of any AWS console page.
Configure your SageMaker AI execution
role
To enable trusted identity propagation for your Studio users, all trusted identity
propagation roles need the set the following context permissions. Update the trust policy
for all roles to include the sts:AssumeRole
and sts:SetContext
actions. Use the following policy when you update your role trust
policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"sagemaker.amazonaws.com"
]
},
"Action": [
"sts:AssumeRole",
"sts:SetContext"
]
}
]
}