You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This role will be used by DataZone to launch the SageMaker Domain. See [BringYourOwnDomainResources.yml](.resources/BringYourOwnDomainResources.yml) for an example.
16
+
If you are using a single SageMaker domain across multiple projects, you will need to create a separate SageMaker Execution Role and User Profile for each user in each project and a separate Federation Role per project.
16
17
17
18
### Prerequisites
18
19
@@ -31,11 +32,43 @@ Run the script and follow the instructions.
31
32
```bash
32
33
python import-sagemaker-domain.py \
33
34
--region REGION \
34
-
--federation-role ARN_OF_FEDERATION_ROLE \
35
35
--account-id ACCOUNTID
36
36
```
37
37
38
38
### Additional Configuration
39
39
40
40
- SageMaker execution roles need DataZone API permissions in order for the Assets UI to function. See [DataZoneUserPolicy.json](./resources/DataZoneUserPolicy.json) for an example.
41
-
- Ensure the DataZone Domain trusts SageMaker. In the AWS DataZone console navigate to Domain details and select the "Trusted services".
41
+
- Ensure the DataZone Domain trusts SageMaker. In the AWS DataZone console navigate to Domain details and select the "Trusted services".
42
+
43
+
### Potential errors and workarounds
44
+
45
+
**Cannot view ML assets in SageMaker Studio, missing "Assets" tab**
46
+
47
+
Make sure that the execution role that is attached to the SageMaker User in the attached domain has ListTags attached as a permissions policy to the role. A simple workaround is to attach AmazonSageMakerCanvasFullAccess policy which contains this permission. Without it - you will not be able to view the Assets tab in the Studio UI. If you were to inspect the network UI, you would see the following error:
48
+
```
49
+
User: arn:aws:sts::789706018617:assumed-role/AmazonSageMaker-ExecutionRole-20241127T120959/SageMaker is not authorized to
50
+
perform: sagemaker:ListTags on resource: arn:aws:sagemaker:us-east-1:789706018617:domain/d-qy9jzu4s7q0y because no
51
+
identity-based policy allows the sagemaker:ListTags action
52
+
```
53
+
54
+
**Able to view assets in sidebar, but page is not loading**
55
+
56
+
If you are able to view the assets - but are getting a `There was a problem when loading subscriptions` error in the page where your ML assets should be - ensure that the SageMaker Execution role tied to this SageMaker user has permissions. We can use the provided /resources/DatazoneUserPolicy.json or a more limited version of what is included in AmazonDataZoneFullUserAccess attached to it.
57
+
58
+
**DataZone portal is not showing a generated action-link for user**
59
+
60
+
If you are attempting to create ProjectB using a subset of users B under created environment B - make sure. that you use a separate federation role when the _associate_fed_role action is called. This is required or else the association will fail and thus the subsequent call to create_environment_action will fail with the following error.
61
+
See `../resources` for sample permissions and trust policies for the federation role. Be sure to fill in your SageMaker Domain Id.
62
+
63
+
```
64
+
An error occurred (ValidationException) when calling the AssociateEnvironmentRole operation: Role Arn
65
+
arn:aws:iam::789706018617:role/svia-test-byod-fed-role already being used in a different project
66
+
```
67
+
68
+
Successful association will return the following
69
+
70
+
```
71
+
Federation role to federate into sagemaker studio from datazone portal: arn:aws:iam::789706018617:role/svia-test-byod-fed-role
72
+
Associating Environment Role using Federation Role [arn:aws:iam::789706018617:role/svia-test-byod-fed-role] ...
73
+
Associating Environment Role using Federation Role [arn:aws:iam::789706018617:role/svia-test-byod-fed-role] COMPLETE
0 commit comments