aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
10.16k stars 6.78k forks source link

add SSO user support + add_env_action to dz-import #4782

Closed svia3 closed 1 week ago

svia3 commented 1 week ago

Issue #, if available:

Description of changes:

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

terminal output now lists all DZ, SSO, and IAM users

--------------------------------------------------------------------
Getting IAM DataZone UserProfiles in account...
UserId: a4284478-f0a1-70a5-41e6-fd5be935e87b    UserType: SSO_USER    User: zsyoscar
UserId: 54e85468-b0c1-7061-cb83-b90c1e5578ba    UserType: SSO_USER    User: hodsjoey
UserId: e4e8b498-10c1-7022-b218-bf09b961e91d    UserType: SSO_USER    User: arvins
UserId: 24e8f458-4071-7060-13dd-86cb09c7b577    UserType: SSO_USER    User: svia
UserId: e4787488-2061-70d4-6209-764bcf0cc4de    UserType: SSO_USER    User: danabens
UserId: 644884e8-a071-70f6-2a6c-fe83eea9b01d    UserType: SSO_USER    User: mnallamo
UserId: 2478e4e8-6071-70e7-c5d1-26907b1c155a    UserType: SSO_USER    User: zshu
UserId: c4784458-7051-70e2-a564-427c81afe024    UserType: SSO_USER    User: jsitu
UserId: 148824e8-3011-7007-8724-c7ea2341412b    UserType: SSO_USER    User: blimamz
UserId: 94480498-a0d1-7048-dbd7-bae642109f5f    UserType: SSO_USER    User: xuefpeng
UserId: 24e8f458-4071-7060-13dd-86cb09c7b577    UserType: DATAZONE_SSO_USER    User: svia
UserId: ff59992c-5874-4843-a3e1-411d07534539    UserType: DATAZONE_IAM_USER    User: arn:aws:iam::789706018617:role/Admin
UserId: ce64904f-920a-475e-b412-e2b6b08f0e53    UserType: DATAZONE_IAM_USER    User: arn:aws:iam::789706018617:user/test-svia
Enter a DataZone UserId to map to ('done' to finish): 24e8f458-4071-7060-13dd-86cb09c7b577
Enter a DataZone UserId to map to ('done' to finish): done
--------------------------------------------------------------------