This article will provide step by step instructions to setup cross account Glue Catalog in Amazon SageMaker Unified Studio
Introduction:
There are some cases/situation where we need to setup cross account Glue Catalog in Amazon SageMaker Unified Studio.
This blog provides a solution to setup cross account Glue Catalog in Amazon SageMaker Unified Studio, consider two accounts as Account A (Where Datazone domain is present) and Account B (where Glue database is present.
Prerequisite:
Account A must have datazone domain with domain version as Amazon SageMaker , please refer this document to create Amazon SageMaker Unified Studio domain
Solution:
-
First associate the domain with account B. Please refer this document for Request association with other AWS accounts
-
Now from Account B, accept the account A association request from an Amazon SageMaker Unified Studio domain and enable the blueprints accordingly Please refer the document for Account Association Request
-
From Account A, create a new project profile and under Default tooling blueprint deployment settings option specify the account id and region of the Account B in which you have your glue database. Please refer this document to create Custom project profile
-
Now login to the domain and create a project using the project profile created above. Please refer this document for project creation
-
Once the project is created, try creating glue datasource like how you would do it if the glue database is in the same account. Since this project uses a project profile in which we configured the account id to be of Account B, it would be able to read the databases and tables of Account B. Please refer this document to create Glue datasource
Conclusion:
This blog provides a solution to setup cross account Glue Catalog in Amazon SageMaker Unified Studio