<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Selvaprakash-S</title>
    <description>The latest articles on DEV Community by Selvaprakash-S (@selvaprakash).</description>
    <link>https://dev.to/selvaprakash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1013835%2F2bc26c72-715f-4988-885d-3dfd99cc3503.png</url>
      <title>DEV Community: Selvaprakash-S</title>
      <link>https://dev.to/selvaprakash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/selvaprakash"/>
    <language>en</language>
    <item>
      <title>Access multiple Amazon Sage maker Domain(SSO Auth-mode) with same SSO user or group</title>
      <dc:creator>Selvaprakash-S</dc:creator>
      <pubDate>Sun, 17 Mar 2024 10:42:35 +0000</pubDate>
      <link>https://dev.to/selvaprakash/access-multiple-amazon-sage-maker-domainsso-auth-mode-with-same-sso-user-or-group-18nf</link>
      <guid>https://dev.to/selvaprakash/access-multiple-amazon-sage-maker-domainsso-auth-mode-with-same-sso-user-or-group-18nf</guid>
      <description>&lt;p&gt;Hello Community, From this blog I would like to share my experience in Multiple Sagemaker Domain with sso auth mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sagemaker Domain:
&lt;/h2&gt;

&lt;p&gt;As aws sagemaker domain document says domain is the first prerequisite to access or launch the sagemaker studio which has all functionality in one UI from processing to inference endpoint in Machine Learning lifecycle.&lt;/p&gt;

&lt;p&gt;When it comes to sagemaker domain administration it has two types of authentication mode.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;IAM Auth Mode&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;IAM Idc Mode (SSO)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here I'm going to explain my experience in SSO Auth Mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  IAM Identity Center:
&lt;/h2&gt;

&lt;p&gt;For SSO auth mode, IAM Identity Center should be in the same region that you wanted to create sagemaker domain.&lt;/p&gt;

&lt;p&gt;When it comes to enterprise company, IAM Idc is utilized in Control Tower where multiple accounts managed with the Organizational Units.&lt;/p&gt;

&lt;p&gt;Here, I'm not going to talk about Control Tower, I'm just going to create one IAM Idc in N.Virginia where I will be creating sagemaker domain.&lt;/p&gt;

&lt;p&gt;Step 1: &lt;/p&gt;

&lt;p&gt;Once the IAM Idc is enabled in us-east-1 I've created 2 groups that I'm part of.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyivjhjw6nipbl44e07qa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyivjhjw6nipbl44e07qa.png" alt="IAM Idc Groups" width="800" height="289"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F236g9scmv0wdgftf1au6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F236g9scmv0wdgftf1au6.png" alt="IAM User" width="800" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2:&lt;/p&gt;

&lt;p&gt;then I've created 2 permission sets&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpa4h7psm68xwdl2t2r3l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpa4h7psm68xwdl2t2r3l.png" alt="Permission Sets" width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;step 3:&lt;/p&gt;

&lt;p&gt;Added those groups and permission sets to the account&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7rdtp45400t3pyinfg7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7rdtp45400t3pyinfg7.png" alt="account config" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once IAM Idc is done create two domain in sagemaker console:&lt;/p&gt;

&lt;p&gt;Step 1:&lt;/p&gt;

&lt;p&gt;By following the custom wizard you can create domain with sso mode&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg56qxnozwfn4u4etum7g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg56qxnozwfn4u4etum7g.png" alt="domain" width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2:&lt;/p&gt;

&lt;p&gt;Add the group that we created earlier by clicking assign user or group&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flxaubv2scf3hbd2ihe9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flxaubv2scf3hbd2ihe9j.png" alt="group" width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see you can add same group in multiple domain&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fegphiweca8p7cy6xdrky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fegphiweca8p7cy6xdrky.png" alt="domain" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, you can see the multiple domain in awsapps page like below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv8pleqoy057t5b04resg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv8pleqoy057t5b04resg.png" alt="awsapps" width="800" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hence, same sso user can access the multiple domain. However, user profile will be prefixed with some random three number and letters so that user profile will be unique across the domain &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fushxpxtx63ck5yaxoty3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fushxpxtx63ck5yaxoty3.png" alt="user profile" width="301" height="631"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fra6jaykc90s3zw0i6zoh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fra6jaykc90s3zw0i6zoh.png" alt="domain 2" width="307" height="637"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Application display name can be changed in IAM Idc's Application section&lt;/p&gt;

</description>
      <category>sagemaker</category>
      <category>mlops</category>
      <category>sso</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
